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

I’m a web developer and the founder of XeCreators, an award-winning digital solutions company established in 2013. With over 9 years of experience, I specialize in building custom WordPress-based systems, including POS solutions, hospital management systems, and API integrations. My focus is on creating scalable and practical solutions that help businesses grow efficiently.

Leave a Reply

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

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.