Recently, two different clients lost their WordPress password. One couldn’t find the log in password for her WordPress blog. Since she is always logged in, she didn’t use it regularly and mislaid the original copy. The other had set up a test WordPress blog on their server ages ago for handling upgrades and conversions, and now wanted to upgrade to WordPress 2.7 to prepare his Theme for the new version, misplacing his password, too. Then I had a computer glitch the same week during a WordPress install and the password step was somehow bypassed, locking me out of the new WordPress install.
For whatever reasons, all three of us couldn’t get the password to work that was emailed to us by WordPress. Without access to the WordPress Administration Panels where we can change our passwords, we’re left hunting for other methods.
If you have lost your password with your WordPress.com blog, click the link on your login to have the password mailed to you directly, or contact WordPress.com support.
While there are many ways of resolving this issue, two tools are life savers for lost passwords if you are caught in this same situation.
The Emergency Password Recovery File
Try the Reset Your Lost WordPress Administrator Password Emergency, a PHP file you upload to your WordPress blog root directory and initiate through your browser. It will generate your WordPress username and password.
Remove the emergency.php file immediately afterward to protect yourself and your WordPress blog.
I tried it with WordPress 2.7 and it continues to work. This is an easy way to recover your password when all else fails and if you are unfamiliar with code and databases.
Manually Change Your Password Settings
The second method is actually the preferred method and is described in the WordPress Codex, the online manual for WordPress Users, in Resetting Your Password. It involves going into your MySQL database and manually changing the password within the tables.
Be aware that there are different versions of MySQL and your version may differ from the instructions.
In the MySQL database:
- Go to
wp_usersand click “browse.”
- On the
user_passfield, click “browse” and find the ID number associated with your login (there is usually only one) and click Edit.
- Select the password content and delete it. Type in your new password as you normally would.
- In the dropdown menu, choose MD5.
- Click Go or Save at the bottom of the screen.
- Return to the tab for your WordPress blog and test the new password. If it doesn’t work, start over.