Question

Database error message on wordpress based website.

My server is a Ubuntu-Lamp 14.04 droplet named economas-droplet-ubuntu. I noticed that sometimes when I tried to access the website it will have a databased errror related message “Error establishing a database connection” I was fixing this issue by power cycling the droplet, but since yesterday this hasn’t worked at all.

Please let me know if you can guide me to find a solution to this problem since I have an important meeting tomorrow.

Thank you,

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

Login to the server and check the following files for errors /var/log/mysql/error.log, /var/log/mysql.log and /var/log/mysql.err to find the root cause of the issue.

You can try running the following command to restart the mysql server manually sudo service mysql restart, please note that might be a temporary fix as you need to find what causes the mysql server to stop.

This is not a digital ocean problem. I would contact a person with knowledge of systems administration.