One of our sites runs signage using WordPress and the website keeps timing out with the following error:
Connection timed out
Error establishing a database connection
This is a problem, since the content has an auto-refresh tag that refreshes every 60 seconds to update, using HTML5. The sign needs to update with that frequency. If this error message shows, the sign stops refreshing.
Our WordPress Debug logs show the following error repeatedly:
[15-Apr-2019 23:40:44 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Connection timed out in /home/site/signage/wp-includes/wp-db.php on line 1612
The frustrating part is that this issue happens intermittently, however, it does happen on all browsers and signage devices, eventually.
I’ve submitted a ticket with DreamHost, but it appears they haven’t been able to recreate the issue yet, and haven’t gotten back to me just yet.