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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠