Hello, I have been observing an error on our website for quite some time. Sometimes when you open the page, you get the error message “Error establishing a database connection”. The error occurs very rarely, unfortunately it occurs more often with my boss and with our customers. Everything seems to be fine with our server, I have had several consultations with our provider in this regard. The error does not occur in my development environment. After I enabled “debugging” in my WP installation, I found the following warning in the debug.log file: PHP Warning: mysqli_real_connect(): (HY000/1203): User o300771 already has more than ‘max_user_connections’ active connections in /homepages/23/d76777578/htdocs/flashaar/wp-includes/wp-db.php on line 1653.
As I have experienced, this can lead to problems with the database connection. However, I can’t increase the value for ‘max_user_connections’ because we are still working with a shared server. What can I do? I’m pretty clueless about this, as the error doesn’t actually occur at all with myself but mainly with customers of ours. Any idea?