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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南