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