I can't login to my lightsail wordpress dashboard

0

I have been having troubles logging into my wordpress lightsail dashboard. I haven't changed any password for any account but since 2 days ago the login screen tells me that my user and pw are not correct. pw reset isn't working either it cannot send an email. I need help please.

Ton
질문됨 일 년 전349회 조회
2개 답변
0
수락된 답변

Restored an older snapshot of the instance and it worked. I was able to login to wp dashboard with the same credentials I've used from the start.

Ton
답변함 일 년 전
0

Can I login to the WordPress database (MySQL)?
If you can, you can change the password directly from the database or create a new user.
Basically, it is not recommended to manipulate the database directly and should only be done in case of emergency.

Always make a backup before executing SQL statements.
Users can be created with the following SQL statement.
Change the information after "VALUES" to yours.

INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES ('your username', MD5('your password'), 'your firstname & your lastname', 'your email', '0');

Also, if you get an error with the above SQL statement, such as "user_registered" is not enough, please change to the following SQL statement.

INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`, 'user_registered') VALUES ('your username', MD5('your password'), 'your firstname & your lastname', 'your email', '0','2023-05-01 00:00:00');

If you want to change only the password, you can use the following SQL statement.

UPDATE `wp_users` SET `user_pass` = MD5( ‘your new_password’ ) WHERE `wp_users`.`user_login` = “your username”;
profile picture
전문가
답변함 일 년 전
  • Hey thanks. I resolved my issue. I restored an older snapshot of the instance and the same login credentials worked. I tried your suggestion but it popped some error out. Thanks though I appreciate your help.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인