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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ