WP Losing Connection to DB
-
My wordpress site is running on an EC2 instance. The WP database is running on AWS MySQL RDS.
I got the alert a while back that the SSL CA was changing for RDS. But since I didn’t think I was communicating via SSL I didn’t have to change anything.Then yesterday I noticed we were having a database issue, so I thought it was related to the SSL updates. So I tried upgrading our current DB to the 2019 CA with no luck. So I spun up a NEW MySQL RDS instance using the same DB name, username, & password. I exported the data from the original DB and imported it to the new DB.
I made the change to the hostname in the wp-config.php file. Confirmed I was able to connect. All good.
Seemed like we were ok for a bit. But the issue is intermittent. My website loads but I think it’s pulling from the cached CDN… and I’m too worried to clear the cache in fear of taking the whole site down. But when I go to the /wp-admin page it sometimes does load, and I can login just fine. Most times I get wordpress error: Error establishing a database connection.
I also sometimes get an error just going to the website that a database connection cannot be made.
So my config looks right and honestly nothing has changed in months. So it doesn’t seem like a WP issue. But more of a hardware or connection issue?
The page I need help with: [log in to see the link]
- The topic ‘WP Losing Connection to DB’ is closed to new replies.