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年前1332ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン