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
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.