MySQL Daemon Lock issue

后端 未结 10 1082
清酒与你
清酒与你 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:26

    I just ran into this. The mysql install was a little weird and was missing /var/run/mysqld/

    MySQLd was attempting to create the socket and lock file but the parent directory was missing. I simply created the directory

    sudo mkdir /var/run/mysqld
    

    chowned it to mysql

    sudo chown mysql:mysql /var/run/mysqld
    

    I was then able to start mysqld normally.

提交回复
热议问题