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!
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!
Try adding swap to your droplet: <a href=“https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04</a>
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.