Nowadays, it might be very common to forget the password for your own blog. When trying to protect ourselves from hackers, we are thinking too complicated passwords that are not easy to remember. Or the even more difficult option – we auto generate random passwords that are impossible to remember. Your blog password might also be hacked or something else. In all of these cases, that might be very unpleasant moment.
When we are using WordPress on our hosting, we still have chance to restore it by clicking the “Lost your password?” link. Then we just have to type our username or email address. But what happens if we are working in localhost. In a localhost environment, configurations may vary from machine to machine. Most of the time “Lost your password” will not work as email system is either not supported or not properly setup.
So the problem is that you forgot or don’t know your blog password and the “Lost your password?” button is not working properly.
Go to PhpMyAdmin. If you work in localhost, the url should be http://localhost/phpmyadmin. If you use average hosting, find the phpMyAdmin button in your cPanel.
Then look for your database name at the left side. If you don’t know your DB name, you can check it when you open the wp-config.php file from your WordPress configuration.
After you find your database, click on wp_users.
Click on the Edit button, look for the user_pass column and then choose MD5 for the function dropdown.
Then type your new password in the value field (the field with the strange characters). Pay attention that the value field is case sensitive.
Finally click the “GO” button at the bottom right. That’s it. You have successfully changed your password.
Your new password should look in that way – cd1e737a4d9836af779a1b6f414d0f54.