Why does my WordPress site sometimes go down and say "Error Establishing Connection?"

Sometimes, my WordPress site goes down (usually brought to my attention by someone visiting my site) and I have to reboot the droplet via “sudo shutdown -r now”

Why is this happening? What can I do to prevent this?

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.


If the website is working fine, then you don’t have to touch it again.

Sorry I am also not having that much experience on these things “Cannot allocate memory for the buffer pool”.

I have also faced this issue many times in my client’s websites “Error establishing a database connection”.

So I came to fix this issue following those instructions. That’s what I can help you to fix that issue.

Still, you’re having any doubts you can send the tickets to support team.

Thanks :)

Ok, then you can increase your memory size.

The size will be based on your usage.

So, for now, you can increase it to 2GB. Then restart via putty. Check if it is working or not.

Yes, you just upgrade CPU and RAM only.

This comment has been deleted