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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!