Frequent error 524 & error establishing connection to the database

Are there no ways to prevent the seemingly frequent occurrence of error 524 & error establishing connection to the database?

Thanks,

That sure sounds like a server issue. Cloudflare is not involved in database connections.

1 Like

Thanks!

1 Like

How would you respond to a server team who directs you back to Cloudflare?

Focus on the database connection. It sounds like it’s not completely unreachable. Only sometimes.

Your app should be configured to connect to a database server that’s not proxied by Cloudflare. Either with an IP address, an unproxied hostname, or localhost, if it’s the same server as the app.

Your app should be configured to connect to a database server that’s not proxied by Cloudflare.

Would you mind pontificating here? I am not quite sure that I understand what you mean by this.

Thanks!

Is this a Wordpress site?

Mhm; yes, it is a Wordpress site.

Then the database is most likely hosted on the same server. Your wp-config.php should have DB_HOST set to localhost. If the DB is not on the same server, you should set DB_HOST to the IP address of that server.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.