Error establishing a database connection with RDS and OpenLiteSpeed AIMs

0

Hi, I have installed pre-configured OpenLiteSpeed AMIs in an EC2 instance. I'm planning on using Amazon RDS Maria DB. After successful installation, I have connected my domain and installed SSL and I went inside the (cd /var/www/HTML) file where I have my WordPress installed and changed the wp-config.php file with the database details I have received from RDS. After that when I'm visiting the website it's showing "Error establishing a database connection". Not sure what I have done wrong. I have only changed the database name, username, password, and hostname, I didn't make any other change in the config file.

Jiban
已提問 2 年前檢視次數 1333 次
1 個回答
1

Hi Jiban,

I understand you got an “Error establishing a database connection" when you are visiting your website. Error establishing a database connection" might occur for the following reasons: There are corrupted database tables, the remote database connection is disabled, the database service is down, there is insufficient space on your volume or there are incorrect login credentials in your WordPress Configuration file. In addition [1], I have provided a documentation with guided steps to resolve the issue.

Refer to references

[1] https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-wordpress-fix-database-errors/

Lwazi
已回答 2 年前

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

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

回答問題指南