Report this

What is the reason for this report?

MySql stopped and I can't restart it.

Posted on December 7, 2013

I received the following error:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111)

So after restarting the server and trying to figure out what was going on I tried reinstalling mysql with this: apt-get install mysql-server

Then I restarted apache and still keep getting the same error message.

What could be causing this? Can anyone point me in the right direction to trouble shoot this issue?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi! same problem in a 2GB droplet! It randomly crashes

Is this a 512 MB droplet?

I have a new droplet and experienced this both times I shut it down. I just tried entering the console and inputting sudo service mysql restart. For me, this worked immediately.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.