Mysql keeps failing to restart, even configuration changes and repairs don’t work
世界只因有你2017-06-20 10:07:32
If you have encountered something similar before, you can check the error log file and find a solution on Baidu
过去多啦不再A梦2017-06-20 10:07:32
pid is lost. It may be that my.cnf has been modified recently. Check if there are any errors. Also check the error log and the mysql error log in the /var/log directory.
我想大声告诉你2017-06-20 10:07:32
1. It may be that the /usr/local/mysql/data/mysql.pid file does not have write permission
Solution: Give permission and execute "chown -R mysql:mysql /var/data" "chmod -R 755 /usr/ local/mysql/data" and then restart mysqld!
2. The mysql process may already exist in the process
Solution: Use the command "ps -ef|grep mysqld" to check whether there is a mysqld process. If there is, use "kill -9 process number" to kill it, and then restart mysqld!