AWS Builder Center: Learn, Build and Connect with builders in the AWS community
AWS Builder Center is the official home for builders on AWS. Share and read what others are working on, follow people who inspire you, explore training and workshops, and find tools to support what you're building.
Este conteúdo não está disponível no idioma selecionado
Estamos trabalhando constantemente para disponibilizar conteúdo no idioma selecionado. Agradecemos sua paciência.
How do I reset a WordPress website's administrator email in Lightsail?
1 minuto de leitura
0
I want to reset a WordPress administrator email in Amazon Lightsail.
Resolution
To reset a WordPress website's administrator email address, complete the following steps:
Get the WordPress administrator account's user ID:
$ mysql -u root -p bitnami_wordpress -e "SELECT * FROM wp_users;"
Note: The default username and password are in the /home/bitnami/bitnami_credentials file.
Reset the administrator email address: Note: Replace example-DATABASEHOST with your host, example-NEWEMAIL-ADDRESS with the new email address, and example-ADMIN-ID with the user ID.
$ mysql -u root -h example-DATABASEHOST -p bitnami_wordpress -e "UPDATE wp_users SET user_email='example-NEWEMAIL-ADDRESS' WHERE ID='example-ADMIN-ID';"
To verify that the email address is updated, get the administrator account's user ID:
$ mysql -u root -p bitnami_wordpress -e "SELECT * FROM wp_users;"