Report this

What is the reason for this report?

MySQL server vanished

Posted on December 1, 2013

Hi, MySQL server is vanished and I don’t know why. Restoring previous (and stable) backups won’t help at all. Running htop command, there are no instances of mysql is shown and service mysql restart gives the following error:

stop: Unknown instance: start: Job failed to start

I checked if it’s installed by apt-get install mysql-server: “mysql-server is already the newest version.” I don’t want to remove and re-install it because I don’t want to lose existing tables.

Command “mysql” gives this error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Any ideas what might the problem be?



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.

I already have mariadb. The server is up and running, it’s not a memory problem. But suddenly all my databases have disappeared. Any ideas what may be happening? Has DO changed something and the data has gone? All my Wordpress powered databases need some data!

After a deep research, I found out that mysql.sock file has dissapeared somehow. I couldn’t bring it back no matter what I have tried. <br>Temporary solution: Install mariadb on top of mysql. It fixes the problem.

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.