Ecommerce Shopify WordPress Discussion

How to report "Error Establishing Database Connection" in the WordPress logs?

In our Wordpress site, users occasionally encounter the error page "Error Establishing Database Connection". As this happens quite seldom there's no general problem with the Wordpress DB configuration. I'd like to find out under which circumstances the error occurs (e.g. some misconfigured plugin, database connection pool reaching max. connections, ...). Therefore I enabled Wordpress debugging like so: define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); My problem is: the database error isn't reported in any log, not in Wordpress' debug.log and not in the php_error.log (I can reproduce the error in my staging site but nothing shows up in the log). Question: is there any way to make the error show up in the Wordpress debug.log? Ideally with a stack trace?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.