"Error establishing a database connection" after a traffic spike on my Wordpress website

March 22, 2017 1.5k views
WordPress Ubuntu 16.04

I currently use a 5$ Droplet to host a Wordpress website, today about 20 people loaded in to my in about a minute, and the server crashed. What can I do to prevent this from happening again?

1 Answer
hansen March 22, 2017
Accepted Answer

You're running out of RAM, so you need to upgrade your droplet. A $10 plan should suffice, but it all depends on the setup of the server and how many plugins/themes you're running.

Have another answer? Share your knowledge.