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.

Read More

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.

Related posts

2 comments

  1. 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

Comments are closed.