Newbie question about Lightsail and WP

0

Hi all, I'm migrating my existing WP website to Lightsail since a couple of days ago. However, once the migration was done, I got an "Error establishing a database connection" message. I followed instructions watching several tutorials and none of them explained this: is it necessary to create and attach a database to the instance in Lightsail? I wonder if this is the reason why my site is currently down.

Thanks in advance

Enter image description here

질문됨 일 년 전204회 조회
1개 답변
2

Hi,

By default, when you provision a WordPress instance a MySQL database is created within the instance to facilitate WordPress. Yes, we can provision a separate database and connect it to WordPress but that is something we need to configure manually. The most probable cause might be the MySQL connection string including credentials got changed during the migration.

This guide might be useful to troubleshoot your issue -> https://repost.aws/knowledge-center/lightsail-wordpress-fix-database-errors

And if you want to migrate to a managed database -> https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-connect-wordpress-to-mysql-managed-database Hope this helps.

profile picture
Bisina
답변함 일 년 전

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

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

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

관련 콘텐츠