Gaurav Bagul
Gaurav Bagul

Reputation: 517

Wordpress AWS Error establishing a database connection

In one of my project, I am getting this error while accessing the website.

When I restarted RDS instance, the problem was solved and website was running.

After 2 days, again I am getting the same error. But after restarting RDS, Problem is solved. I am not able to figure out this problem. Please help.

Upvotes: 1

Views: 2574

Answers (2)

Nitsh
Nitsh

Reputation: 109

I had the same issue with AWS Lightsail.

Solved as follows :

test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A" || echo "Approach B"

test -d /opt/bitnami/mariadb && echo "MariaDB" || echo "MySQL"

sudo systemctl restart apache2 or sudo service apache2 restart

Upvotes: 0

manuel
manuel

Reputation: 88

Look at this tutorial, it covers the whole process but you may skip to the last part: Using Amazon RDS with your WordPress installation

Upvotes: 1

Related Questions