mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 - Permission denied)
在安装docker mysql:5.7版本时,出现错误:mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 - Permission denied)mysqld: [ERROR] Fatal error in defaults handling. Program aborted!ERROR: mysqld failed ...
·
在安装docker mysql:5.7版本时,出现错误:
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 - Permission denied)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
ERROR: mysqld failed while attempting to check config
command was: "mysqld --verbose --help"
原因
因为Centos7安全Selinux禁止了一些安全权限,导致mysql和mariadb在进行挂载/var/lib/mysql的时候会提示如下信息
解决方法
在docker run中加入 --privileged=true 给容器加上特定权限
更多推荐
已为社区贡献3条内容
所有评论(0)