Easily reset your WordPress Admin password

I’ve got stuck many times when i forgot my WordPress installation’s admin password.  And , the problem becomes a real problem when you don’t have a working mail/SMTP  from your WordPress installation ( For e.g.: on local servers). There’s no way to reset the password.

WordPress 2.4 and Below

Prior to WordPress 2.5 , You would’ve easily worked around this issue by going into the MySQL database and doing the following steps.

  1. Go to phpMyAdmin / MySQL Database manager of your hosting provider.
  2. Go to the  “users” table of the WordPress database.
  3. Find the user whose password you want to reset.
  4. Edit the “user_pass” column   with  md5 hash of  your new password. Use MD5 Hash Generator for generating MD5 hash of your password.


But from WordPress 2.5 onwards, they have changed the hashing mechanism due to security reasons. Hence, i wanted to figure out how to reset the passwords easily.

WordPress 2.5 +

For WordPress 2.5 + , follow these steps:
  1. Copy the attached file to your WordPress Root ( where wp-config.php file is present ).  It is important that it’s in the WordPress directory.
  2. Access the file via browser.
  3. Select one or more ( Hold Shift key for selecting multiple users ).
  4. Type a password ( will be common to all selected users ).
  5. Hit submit.
  6. Remove the script file from the root, otherwise anyone can use it and reset your passwords easily.

Wordpress Password Reset Script

Reset Wordpress Pass (121.4 KiB)

All of this is done without typing even a single line of code / SQL by you. The script is safe , you can check the code yourself if you want to.

One thought on “Easily reset your WordPress Admin password”

Leave a Reply