MySQL Daemon Lock issue

后端 未结 10 1089
清酒与你
清酒与你 2020-12-09 07:53

Last night, my MySQL server went down unexpectedly. On attempting to restart (with service mysql restart - I\'m root) it merely hangs. With the mysql -u r

10条回答
  •  甜味超标
    2020-12-09 08:36

    It's best to look at the log files (/usr/local/var/mysql/*.local.err) before attempting any of the more generic answers.


    In my case first it complained of not being able to open the socket file ([Server] Could not open unix socket lock file /tmp/mysql.sock.lock.) and once I changed permissions, it complained of not being able to remove it! ([Server] Could not remove unix socket lock file /tmp/mysql.sock.lock errno 13.)

    Removed it and run mysql.server start and DONE.

提交回复
热议问题