Report this

What is the reason for this report?

Restarted droplet and now "Unable to establish database connection" - tried to restart mysql and says can't start

Posted on November 19, 2017

Hi. I recently rebooted my droplet due to some issues with performance. Now after rebooting and restarting Nginx and PHP-FPM the website is still down. I tried to restart mySQL but I get the message “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)”

Any help would be really appreciated as the site is completely down and I’m being flooded with emails of complaint.

Kind regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.