MySQLStudy ---- MySQL startup configuration file to ignore the problem solved

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

You can not see mysql restart

 

Check the permissions of 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

You can not see mysql restart

 

Check the permissions of 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

Guess you like

Origin www.cnblogs.com/tingguoguoyo/p/11008274.html