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.
Questo contenuto non è disponibile nella lingua selezionata
Lavoriamo costantemente per rendere disponibili i contenuti nella lingua selezionata. Ti ringraziamo per la comprensione.
How do I reset a WordPress website's administrator email in Lightsail?
1 minuti di lettura
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;"