Report this

What is the reason for this report?

MySQL server won't start

Posted on September 4, 2013

Yo, Today after about 3 weeks of not opening up the CLI I tried to add a new MySQL database. When the command failed to run repeatedly, I then tried to restart the MySQL service. When it was starting it, it came up as failed. I’ve tried reinstalling MariaDB, I’ve checked the logs, they had nothing in them, and I’ve rebooted the droplet a few times. No go. Says it can’t connect to the socket, and it’s not a permissions issue as far as I can tell.

It’s really weird because before today I hadn’t touched anything for about 3 weeks, and my sites that use MySQL were working fine.

Any ideas why this is happening? I appreciate any help.



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.

When was the last time you ran <code>sudo apt-get update</code>? Perhaps some of your software packages need updates.

That’s one of the things I did before I reinstalled MariaDB.

It can’t connect to the socket because there is nothing listening on the socket. <br> <br>Check MariaDB’s error logs, it’s failing to start.

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.