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

Posted October 1, 2019 745 views

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?

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.

Submit an Answer
4 answers


Please follow these steps to get rid of this issue “Error establishing a database connection”

by Brian Boucheron
WordPress is one of the most popular open source content management systems in the world. Although it started out focused on blogging, over the years it has developed into a more flexible platform for websites in general. After almost fifteen years of development it is quite polished and robust, yet issues can still come up. If you've recently attempted to load your WordPress-powered website and instead saw a message stating "Error Establishing Database Connection", the cause is most often...
  • Thank you. I’m getting a lot of “Cannot allocate memory for the buffer pool” messages which indicates I need to increase my memory. But how do I know how much to increase? Currently, I’m at 1gb. Should 2gb be enough?

    Also, should I upgrade CPU and RAM only or Disk, CPU and RAM?

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.

  • I just upgraded it from 1gb to 2gb and I’m still getting the same “Cannot allocate memory for the buffer pool” messages. Are these messages current or are they the same messages from 6 hours ago when I posted my last reply? Should I upgrade even more? The site seems to be doing okay for now…


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 :)