How To: Recover WordPress Password Part II

In part I of this series, I showed you how to restore or recover your WordPress password using the MySQL command line. This time, I’ll show you how to do it with phpMyAdmin.

Before you start with phpMyAdmin, you need to create a md5 hash of your new password. You can use this md5 encrypt tool. After you created the new md5 hash, save it and kept it for later.

Note: use phpMyAdmin at your own risk. If you are not sure on how to use it, seek further advice. I’m not responsible for any loss of data.

1. Open phpMyAdmin.
2. Click on the drop down menu and select your WordPress database.
phpMyAdmin

3. From the list of tables, look for the wp_users table and click on the Browse icon. (the prefix may defer with different databases)
phpMyAdmin

4. Click on the Edit icon (pen icon).
phpMyAdmin

5. Look for the md5 hash of user_pass under the Value column.
phpMyAdmin

6. Change the md5 hash with the one you created earlier. If you want to use a different username, you may also change the present value with a new one.
7. Close phpMyAdmin
8. Login to your WordPress blog with your new password (and username if you changed it).

I hope this series would provide you with the needed information on how to restore or recover your WordPress password. Some of you might know a totally different way of recovering WordPress user passwords, so any suggestions and corrections would be greatly appreciated.

This post may contain affiliate links that allow us to earn commissions at no additional cost to you. We are reader-supported so when you buy through the affiliate links, you are also helping or supporting us. 

14 Comments

  1. I want to know if i use phpMyAdmin to get my password. Will it effect to another blog? Cause i have more one site in one hosting? How i can select the blog which is lost password in phpMyAdmin.

  2. @Justin – Yes it still is because the forgotten password via email option is not 100% reliable. A lot of WordPress users have experienced this problem, including myself. That’s why I wrote this tutorial to help other WordPress users who might encounter this problem in the future.

  3. Ironically I found this under your featured article link on your homepage, with WordPress later versions offering forgotten password via email without having to do it manually is this information relevant in WordPress 3.x anymore? Probably it still could be used if the email setup wasn’t working for you to use the forgotten password feature.

  4. @fruity – Wow, what a pleasant surprise! Long time no see my friend. I sent you a message on Twitter asking how you’ve been but you didn’t reply. :P

    Anyways, I’m glad that this post was able to help you with your problem. Yes, you should update your blog even once a week or twice a month at least. You also need to do keep your WordPress install up-to-date so your blog will be safe as there’s been a lot of attacks on WordPress blogs lately.

    You’re welcome! ;)

  5. OMG, I have to say “THANKS” x 100 for this information. I lost my password recently (I swear to God)… and I remembered you wrote something about password recovery. So I tried the phpMyAdmin recovery method half an hour ago… and damn, it worked! Now I suppose I have no excuse to not update my blog. LOL.

    Thank you, thank you, thank you sir! Whoo, what a relief. I was freaking out today.

  6. Hi Jay,

    You can always use the MD5 function in the dropdown menu in the function column. This way you can just provide the plain text password and mysql will generate the hash for you.

  7. @jhay – Thanks man! Just trying my best to provide useful information to WordPress users out there. Yeah, phpMyAdmin is not that difficult to use but if you don't know what you're doing, you can do a lot of damage to your database. Hehe :)

Leave a Reply

Your email address will not be published.

JaypeeOnline