Error establishing database connection issues

Operating System & Version
Centos 7
cPanel & WHM Version
94

Orlazdgreat

Registered
Mar 13, 2021
2
0
1
Home
cPanel Access Level
Root Administrator
Hello, good day please I need help on my whm account as all my wordpress websites started showing error establishing database connection when all the details Is accurate and correct.

I started getting this error once in a while three days but now it's showing almost every seconds.

Please any help would be appreciated thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,859
600
273
cPanel Access Level
Root Administrator
As you've said, it wouldn't make any sense for all the passwords on the system to be wrong at the same time, so it is likely something with the main MySQL server. If you check the system during the time where you experience those errors on the sites, do you see anything out of the ordinary? You could check the MySQL logs, which by default are located in /var/lib/mysql/hostname.err, or you can run this command to see what MySQL is doing in real-time:

Code:
mysqladmin proc status
as that would tell you if it's hitting any limits or if it is offline completely.