Friday, March 31st, 2017
Its not uncommon for some one to hack a website and change both the password and email address of an account. When this happens, its impossible to reset your password the normal way as the reset link is being sent to the new email address assigned to the account.
To fix this you will need to access your websites database and change the password/email combination manually. There are two methods of changing the combination, the first doesn’t require any coding, while the second method requires a bit of MySQL but is quicker.
This method is the one I would recommend to any one who doesn’t have any experience with MySQL. It’s relatively straight forward and minimizes the risk of breaking your database.
Find the PHPMyAdmin option in your cPanel, or which ever hosting panel you have.
Look for the database that corresponds with the site you want to gain access to. For more common frameworks like WordPress, your database should start with _wp followed by a group of numbers. If you created a custom name for your database then select that database.
Navigate to the wp_users tab and select it. Find the user who’s password you want to change and click the “edit” button to the left of the user name.
In the user_pass section, change the function to MD5 and enter a new password in the Value column. If you need to, you can also change the email address in the email section.
Once you are happy with the values you’ve entered, save the new values by clicking the go button at the bottom of the page.
I would advise that you only use this method if you have some experience with coding. The only real difference between the two is how much you want to feel like a kick ass hacker in front of your co-workers.
Find the PHPMyAdmin option in your cPanel, or which ever hosting panel you have.
Look for the database that corresponds with the site you want to gain access to. For more common frameworks like WordPress, your database should start with _wp followed by a group of numbers. If you created a custom name for your database then select that database.
Navigate to the wp_users tab and select it. Find the user who’s password you want to change and click the “edit” button to the left of the user name.
Select the SQL or MySQL tab above the table structure.
Enter the following code:
UPDATE `wp_users` SET `user_pass`= MD5(‘yourpassword’) WHERE `user_login`=’yourusername’;
Replace “yourpassword” with the password you will use to login and replace “yourusername” with your WordPress username.
Once you are happy with the values you’ve entered, save the new values by clicking the go button at the bottom of the page
Congratulations, you’ve reset your password through the database. You can now navigate to your website and login in with your new details.