MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
2016-12-04 00:00
831 查看
问题分析
在关闭数据库的命令发现mysql关不了,提示
下面看下整个过程
重启MySQL
可以看到mysql停止不了
查看my.cnf的权限
权限777,任何一个用户都可以改
修复MySQL问题
my.cnf设置为用户可读写,其他用户不可写.
关闭MySQL
MySQL关闭成功. 问题很简单
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。
apache和mysql重启命令
windows下重启mysql的方法
Ubuntu下启动、停止、重启MySQL,查看错误日志命令大全
使用innodb_force_recovery解决MySQL崩溃无法重启问题
windows下实现定时重启Apache与MySQL方法
不重启Mysql修改root密码的方法
mysql不重启的情况下修改参数变量
Mysql挂掉后无法重启报pid文件丢失的解决方法
LINUX重启MYSQL的命令详解
在关闭数据库的命令发现mysql关不了,提示
Warning: World-writable config file '/etc/my.cnf' is ignored,大概意思是权限全局可写,任何一个用户都可以写。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,任何一个用户都可以改
my.cnf,存在很大的安全隐患.
修复MySQL问题
[root@ttlsa ~]# chmod 644 /etc/my.cnf
my.cnf设置为用户可读写,其他用户不可写.
关闭MySQL
[root@ttlsa ~]# service mysqld stop Shutting down MySQL..[ OK ]
MySQL关闭成功. 问题很简单
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。
您可能感兴趣的文章:
linux正确重启MySQL的方法apache和mysql重启命令
windows下重启mysql的方法
Ubuntu下启动、停止、重启MySQL,查看错误日志命令大全
使用innodb_force_recovery解决MySQL崩溃无法重启问题
windows下实现定时重启Apache与MySQL方法
不重启Mysql修改root密码的方法
mysql不重启的情况下修改参数变量
Mysql挂掉后无法重启报pid文件丢失的解决方法
LINUX重启MYSQL的命令详解
相关文章推荐
- MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
- MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
- MySQL无法重启报错Warning: World-writable config file ‘/etc/my.cnf’ is ignored的解决方法
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启问题解决Warning: World-writable config file '/etc/my.cnf' is ignored
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- MySQL无法重启问题解决Warning: World-writable config file ‘/etc/mysql/my.cnf’ is ignored
- 解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- 解决Warning: World-writable config file ‘/etc/my.cnf’ is ignored
- Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
- Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
- linux MYSQL Warning: World-writable config file './my.cnf' is ignored解决方法
- Warning: World-writable config file '/etc/my.cnf' is ignored
- warning: World-writable config file /opt/lampp/etc/my.cnf is ignored
- warning: World-writable config file my.cnf is ignored
- unknown variable 'defaults-file=/opt/redmine-2.6.0-2/mysql/my.cnf'解决方法
- centos6.8安装mysql5.6启动时出现Default config file /etc/my.cnf exists on the system...