Question

MySQL server vanished

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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

Another note: I tried to run fsck to see if there is an issue with the file system and got this error: <br> <br>root@vithefiddler:~# fsck -v <br>fsck from util-linux 2.20.1 <br>fsck.ext4: Unable to resolve ‘UUID=b96601ba-7d51-4c5f-bfe2-63815708aabd’ <br> <br>This is what my fstab looks like (I haven’t changed it since the image instantiation.) <br> <br># /etc/fstab: static file system information. <br># <br># Use ‘blkid’ to print the universally unique identifier for a <br># device; this may be used with UUID= as a more robust way to name devices <br># that works even if disks are added and removed. See fstab(5). <br># <br># <file system> <mount point> <type> <options> <dump> <pass> <br>proc /proc proc nodev,noexec,nosuid 0 0 <br># / was on /dev/vda1 during installation <br>UUID=b96601ba-7d51-4c5f-bfe2-63815708aabd / ext4 noatime,errors=remount-ro 0 1