Passwords are an awful lot to remember! Every internet thing seems to need a password, each of them have their own criteria for setting the password. As an internet user, you would have often clicked on the “forgot password” link. It would lead you to a page where you will have to give your email id. On providing your email Id, a new password will be sent to your email. This can be used to login and subsequently change your password.
Often, with wordpress users forgot password link leads to the email request page. On providing the email ID, it mentions “email was not setup right”. This has caused a lot of distress to users.
Where is the WordPress Admin password stored?
The unencrypted password is stored in salted MD5 hash. This is a part of database table prefix_wp-users. Any user cannot retrieve the password; however, the user can conveniently reset the password.
Another way to request a password is by adding a valid email into the account via SQL. Then you can go back to clicking the “forgot password” link and requesting for a new password.
Knowing how to change your password under all situations can come in handy. Here’s a look at the top 3 methods in which you can reset your password.
After you log in
This is the simplest way, when you feel threatened that your password may not provide the necessary security. All you have to do is login to your wordpress admin page and update your profile by changing your password there.
WordPress is powered by an inbuilt password retrieval system, you will have to simply click the “forgot password” link which will in turn ask you for your email. You will have to provide the registered email wherein a new password will be sent.
The password reset is located wp-login.php?action = lostpassword in the location of your wordpress installation. You will have to access your registered email and click on the link which will enable you to provide a new password for WordPress login. If you are unable to login to your registered email, then this option clearly does not work.
Interfacing with database
If you want bypass the registered email process, then you will have to modify the database. To change the password in the database, below steps have to be followed –
- Login to database
- Locate your username in the list of users (in the users table)
- Click browse tab and edit button
- Scroll to user_pass field and edit as desired
To avoid such a situation, use a password which you can recall easily and remember to register a valid email ID.