I really hope someone can help me out with an issue I’m facing. I have a droplet with WordPress on a LAMP stack. This evening I ssh’d into my droplet and ran
apt-get update and
upgrade where some mysql and php packages were fetched and installed. I then went to the browser where I had I was already logged into the WordPress dashboard, I started using it, but was soon met with an error that read:
Error establishing a database connection. I went back into ssh and enabled debugging and reloaded the page in the browser and have a little more info. The full error (warning) is:
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1753 No such file or directory
I’m not exactly sure where to start in fixing this issue. Any help would be appreciated!
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.