How Can We Help?
WordPress password recovery
You are working with a WordPress website but you forgot your password so you cannot manage your website. No problem right? Just go to the lost password page and everything is fixed … right? But now it turns out that your WordPress website redirects you to a different URL and you cannot recover your password! Don’t worry this article covers how to get your password recovered.
Web Solution
First, make sure you went to the correct location. Go to __YOUR_WEBSITE__/wp-admin
this should give you a login page. Here you are able to click on “Lost your password?”
If clicking this page redirects you to a totally different page or a 404 Not Found page then we have to try another approach.
Go to __YOUR_WEBSITE__/wp-login.php?action=lostpassword
.
This should redirect you to an accessible page and you can request to recover your password.
Database Solution
Alternatively, you can update the password in the database if you have access to it. To do this first connect to your database (i.e. mysql --user __USERNAME__
). Next, make sure you hashed the password before adding it to the database. You can do this using a website like this: useotools.com, make sure to change the password later again to increase security. Once you have your hash run the following SQL query:
UPDATE `wp_users` SET `user_pass` = '__PASSWORD_HASH__' WHERE `user_login` = '__USERNAME__';
Now you can log in using your new password.
3 Responses
Your blog has become one of my preferred resources; I can’t wait for new articles.
Your writing crafts striking imagery in my mind. I imagine every detail you portray.
Great advice! I’m absolutely going to try them out.