AWS Lightsail and Wordpress Admin Login Error

0

I am trying to log in to my WP-Admin page and I think I tried to log in with the wrong user name too many times. Now I am getting a message to contact the administrator which is me. I need to know how to reset this so I can get back to the login page.

Below is a screenshot of the error page. Does anyone know how to reset this page so I can access it? https://share.getcloudapp.com/WnuZXzrQ

The access to that page has been restricted by the administrator of this website You don’t have access to this page. Please contact the administrator of this website for further assistance.

已提问 1 年前771 查看次数
2 回答
2
  1. You need to SSH into the instance
  2. Run the following command to see the list of login users in the database. You must enter the MySQL root password. This password is located in the /home/bitnami/bitnami_application_password file: mysql -u root -p bitnami_wordpress -e "SELECT * FROM wp_users;"
  3. Note the ID of the user that you want to reset the password for. Then, run the following command. Be sure to replace NEWPASSWORD with your desired password and ADMIN-ID with the user ID obtained in step 2: mysql -u root -p bitnami_wordpress -e "UPDATE wp_users SET user_pass=MD5('NEWPASSWORD') WHERE ID='ADMIN-ID';"
profile picture
专家
已回答 1 年前
profile picture
专家
Artem
已审核 1 个月前
0

Hi,

Thanks for using Lightsail. This guide may help you set up your WordPress instance correctly:

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-quick-start-guide-wordpress

AWS
审核人员
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则