Just figured out I cannot login to my site. Error establishing database connection and another problem

My site was working just find today I woke up finding out that my site is not reachable.

Submit an answer
Answer a question...

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.

Accepted Answer


I tried a lot of stuff but there was nothing working to fix my problem. So I did a backup from an image that was stored couple weeks ago. And my site is back online. Even that I lost some changes i did recently.

Anyways. Thank you for your help.


If this happens one of the first things to check is the connection to the database. If you ssh into your droplet and run (these are litespeed server commands) systemctl restart mysql, you may need to run it with sudo sudo systemctl restart mysql and enter your password.

See if that restores the site, if so MySQL stopped running and the next steps would be looking into why that happened.

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.

No answer man no solution deciding to leaving digital ocean and going to aws