Question

Can't connect to local MySQL server through socket

Posted March 26, 2014 2.2k views
Yesterday my server was down and is now giving the following error message: "ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/ var / run / mysqld / mysqld.sock' (111)" Can anyone help me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
That means it crashed. Start it:
sudo service mysql start
And then check its error log for more info on why it crashed:
sudo tail -40 /var/log/mysql.err
Submit an Answer