I’ve been using Cloudflare for years with no problems. And then, late last week, one of my sites (www.aldireviewer.com) suddenly started experiencing “Error establishing a database connection” when trying to access the backend, and intermittent error messages on the frontend. I spent the entire weekend troubleshooting: looked at wp-config, repaired and optimized the database, tested plugins, all that. No success. My hosting provider said no problems on their end.
Finally went and paused Cloudflare and redirected my nameservers back to my hosting provider … and the problem disappeared. I’ve tried going back several times and re-enabling Cloudflare and within a few minutes I get the error again. So I’ve been able to reproduce the problem consistently. The only time I have it is when I’m on Cloudflare, and when I’m off I don’t get the error.
I’m dumbfounded. I really want to use Cloudflare but I obviously can’t do that if I can’t access my site. I’m open to any suggestions, if anyone has any.