Restarted droplet and now "Unable to establish database connection" - tried to restart mysql and says can't start
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.
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.×