MySQL Daemon Lock issue

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

    I had following error

    [ERROR] Unix socket lock file is empty /var/lib/mysql/mysql.sock.lock.
    

    This error came up as a result that my server was lacking space 100% use (see below)

    Filesystem     1K-blocks     Used Available Use% Mounted on
    /dev/xvda1      41153856 28531384  12187364  100% /
    

    Make sure the folder exists with the proper permissions

    chown mysql:mysql /var/lib/mysql/
    

    And make sure to delete the file so the mysql server could generate a new one

    rm /var/lib/mysql/mysql.sock.lock
    

提交回复
热议问题