Lost Password in WordPress

Good morning,

It has been quite sometime since I have posted anything here as my job has kept me very busy. Fortunately, I have made a significant career move in the past couple weeks and I will have much more time to post here. Frankly, I am glad to be back!

Today I am going to post about a worse case scenario that can happen, and it has happened to me more than once this week, where I have tried to login to a couple of my blogs and have, over the course of 2-3 years, forgotten my passwords. To make matters worse, the email address that I used with these blogs was canceled long ago because I switched ISPs. This essentially rendered the lost password feature of WordPress useless.

Fortunately, there is a quick and simple way to change your password without using the lost password tool. By using a text editor and phpMyAdmin to access/edit the database, you can create a new password for your blog.

WordPress passwords initially use md5 encryption. They are later salted and stored in a new format in the database but by using a simple md5 encryption, we can create a new password to login.

In your text editor type the following code:
'); ?>
Change to whatever you want the new password to be. Second, access your database with phpMyAdmin. Go to the users table in your database. By your username, double click the field for UserPass. I always copy the old password out to a notepad just in case something goes wrong. Copy and paste the md5 hash of your new password into the field. Click out of the box and it will automatically update.

Go to your site’s wp-login page and login with your new password.

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.