By lukelarris
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!
When was the last time you ran <code>sudo apt-get update</code>? Perhaps some of your software packages need updates.
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.
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.