Mysql警告 : Warning: World-writable config file '/etc/my.cnf' is ignored

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liuzhixiong_521/article/details/84333430

linux下登入mysql的时候,突然报出警告
Warning: World-writable config file ‘/etc/my.cnf’ is ignored

原因

/etc/my.cnf配置文件权限为全局可写,mysql担心这个文件会被其他用户恶意修改。

解决方案

修改my.cnf文件权限

chmod 644 /etc/my.cnf

重启mysql服务

service mysql restart 

猜你喜欢

转载自blog.csdn.net/liuzhixiong_521/article/details/84333430