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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则