MySQL Daemon Lock issue

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

    Posting this answer, in case it helps someone with the same config as me. I had similar issue with this configuration:

    Host OS: Ubuntu 20.04, MySql server: 8.0

    The following error was seen in /var/log/mysql/error.log during run of systemctl start mysql

    [ERROR] [MY-010273] [Server] Could not create unix socket lock file /var/run/mysqld/mysqld.sock.lock.
    

    Fix was similar:

    mkdir -p /var/run/mysqld/
    chmod 777 /var/run/mysqld/
    

    And of course, I had enough space wherever mysql server was being installed.

提交回复
热议问题