Suddenly occurring 'Error establishing a database connection' to EC2 instance

0

Hi folks,

I'm working on a wordpress website that runs on AWS EC2 instance. Sometimes, my mysql server is goes down and it shows 'Error establishing a database connection' for a second and when I refresh the page again then it's get rid.

It shows that I've wrong entry of the database name, database user, port and host in wp-confg.php. But there is all okay.

Can you please give me a solutions regarding this?

I've checked ton's of articles from AWS re:post and also google. But can't figure out what's wrong actually.

Thanks.

profile picture
Saif
posta un anno fa319 visualizzazioni
1 Risposta
0

It's not wp-confg.php. MySql db on ec2 or rds? See MySQL logs or CloudWatch. May be DB server overloaded.

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande