Some times we forget password, but the worst is when we also lose access to our email. This was something that one of my client experienced recently. I want to share the method with every one so next time this happens don’t worry as long as you have access to cPanel just follow the steps below and access your site in no time.


  1. Open wp-config.php and find DB_NAME (Database name).
  2. Go to phpMyAdmin and click on the database name.
  3. Click on wp-users and you will see list of all users.
  4. Click on edit for which user you want to change the password.
  5. You will see that user_pass is encrypted.
  6. Search MD5 Encryption on Google, visit a website from results, enter your new password in box and encrypt it.
  7. Now copy and paste the encrypted password in user_pass then click on Go to save.
  8. That’s All! go to your wp-admin and new password will work.


Note: You can also change email and then reset password from wp admin panel 😉

Muhammad Zohaib

Web Developer specializing in WordPress to develop custom themes, plugins, troubleshooting technical issues and ensuring websites are optimized for search engines and meet accessibility standards. Currently working as Lead Developer at XeCreators.

Leave a Reply

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

The reCAPTCHA verification period has expired. Please reload the page.