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
preguntada hace un año319 visualizaciones
1 Respuesta
0

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

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas