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

質問済み 1年前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
回答済み 1年前

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

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

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

関連するコンテンツ