MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’
发布时间:2020-05-29 21:15:22 所属栏目:MsSql 来源:互联网
导读:问题分析在关闭数据库的命令发现mysql关不了,提示Warning:World-writableconfigfile'/etc/my.cnf'isignored,大概意思是权限全局可写,任何一个用户都可以写。mysql担心这种文件被其他用户恶意修改,所以忽略掉这
|
问题分析 在关闭数据库的命令发现mysql关不了,提示 下面看下整个过程 重启MySQL [root@ttlsa ~]# service mysqld stop Warning: World-writable config file '/etc/my.cnf' is ignored Warning: World-writable config file '/etc/my.cnf' is ignored MySQL manager or server PID file could not be found![FAILED] 可以看到mysql停止不了 查看my.cnf的权限 [root@ttlsa ~]# ls -l /etc/my.cnf -rwxrwxrwx 1 root root 4878 Jul 30 11:31 /etc/my.cnf 权限777,任何一个用户都可以改 修复MySQL问题 [root@ttlsa ~]# chmod 644 /etc/my.cnf my.cnf设置为用户可读写,其他用户不可写. 关闭MySQL [root@ttlsa ~]# service mysqld stop Shutting down MySQL..[ OK ] MySQL关闭成功. 问题很简单 总结 以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
