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
已提問 1 年前檢視次數 319 次
1 個回答
0

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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南