Imagine someone somehow manages to break into your WordPress dashboard, and changes it’s password and email. If you request a “Forget Password”, the reset password link will be mailed to the new email, not to your email. The result will be – you losing control over your WordPress-powered site. I think that’s enough to picturize that traumatic situation.
How would you cope up with such a problem? The first recommended step for a beginner-level user to restore WordPress is to contact the Hosting service. The restoration may take sometime, some hours, a day or even more depending on your Hosting provider’s service.
If you can dare to work in the cPanel or the control panel that your service has provided you with; here is a rather quick way to restore your password a few minutes.
Change / Reset WordPress password from MySQL / PHPMyAdmin
In the rest of this article, we’ll see how to reset WordPress password from PHPMyAdmin or MySQL.
Note: Implement only one of the below given methods, either Method#1 or Method#2 since both of these methods are similar and yield the same results. Following one of these two methods will help you to quickly regain control over your hacked WordPress admin account.
Method#1 – The Long way through PHPMyAdmin table editing
This method involves editing and updating the
wp_users table values to reset our lost WordPress password. The method is little longer but is also easy enough to follow without knowing technical things.
- Head over to PHPMyAdmin using your cPanel (or the hosting panel that your hosting service supports).
- Click on your WordPress database.
- Navigate to and click the table
- Edit the row with your WordPress username
- Now, in the user_pass field, change the function to MD5 and enter your new password in the Value section (refer below screenshot).
YOUR DONE !