search

Home  >  Q&A  >  body text

mysql failed to start, solution

Mysql keeps failing to restart, even configuration changes and repairs don’t work

某草草某草草2786 days ago975

reply all(4)I'll reply

  • 世界只因有你

    世界只因有你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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再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.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你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!

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-06-20 10:07:32

    You will know what the log says. The log will tell you clearly

    reply
    0
  • Cancelreply