MySQL resolve Warning: World-writable config file '/etc/mysql/my.cnf' is ignored startup configuration file is ignored
Today modify the mysql database configuration files, as easy to operate, it will be "/etc/mysql/my.cnf" permissions set to "777", and
Then modified when you modify the restart mysql, but an error, suggesting Warning: World-writable config file '/etc/mysql/my.cnf' is ignored,
Probably means world-writable permissions, any user can write. mysql fear that this file has been maliciously modified other user, so ignore the configuration file. So mysql can not be restarted.
The following look at the whole process ( under root, complete !!!!! )
Restart MySQL
[root@ttlsa ~]# /etc/init.d/mysql restart 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]
You can not see mysql restart
Check the permissions of my.cnf
1 [root@ttlsa ~]# ls -l /etc/my.cnf 2 -rwxrwxrwx 1 root root 4878 Jul 30 11:31 /etc/my.cnf
777 permissions, any user can change my.cnf, there is a big security risk. So you want to modify 664
MySQL fix the problem
Today modify the mysql database configuration files, as easy to operate, it will be "/etc/mysql/my.cnf" permissions set to "777", and
Then modified when you modify the restart mysql, but an error, suggesting Warning: World-writable config file '/etc/mysql/my.cnf' is ignored,
Probably means world-writable permissions, any user can write. mysql fear that this file has been maliciously modified other user, so ignore the configuration file. So mysql can not be restarted.
The following look at the whole process ( under root, complete !!!!! )
Restart MySQL
[root@ttlsa ~]# /etc/init.d/mysql restart 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]
You can not see mysql restart
Check the permissions of my.cnf
1 [root@ttlsa ~]# ls -l /etc/my.cnf 2 -rwxrwxrwx 1 root root 4878 Jul 30 11:31 /etc/my.cnf
777 permissions, any user can change my.cnf, there is a big security risk. So you want to modify 664
MySQL fix the problem