Wordpress repeatedly gives "Error establishing database connection" inspite of having JetPack enabled

Posted May 17, 2016 2.4k views


I have recently installed Wordpress, and as per the instructions here have installed jetpack.

In the “Enter the IPv4 or IPv6 addresses that you want to white list and click the Save button to update the Protect white list.” i have added the droplet IP and clicked on save. Is that correct?
After this, i have restarted apache as well as restarted the droplet just to be sure.

But something seems amiss, since the “Error establishing database connection” keeps recurring.

My droplet config:
1 GB Memory / 30 GB Disk / NYC3 - Ubuntu WordPress on 14.04

Please help.

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
1 answer

Jetpack doesn’t block XML-RPC traffic as it uses XML-RPC itself. The protect module of Jetpack detects brute force attacks from the common XML-RPC attack vector. Jetpack will then prevent 90% of the database queries and reduce the load on MySQL. However, it’s still possible for enough XML-RPC attack traffic to exhaust MySQL’s resources.

If you are not using Jetpack for anything else, I would recommend using the other methods mentioned in the link from your question. If Jetpack is essential for you, I have seen WordPress plugins that place a hard block on XML-RPC traffic, but whitelist Automattic’s IP ranges so Jetpack continues to function.

I hope this helps!