Reset WordPress Admin Password on Localhost
We will be using phpMyAdmin to reset password on localhost. Simply visit phpMyAdmin control panel by typing this URL in your browser’s address bar:
You will be asked to provide your MySQL username and password. Typically, the username is root with no password.
Once you are logged in, you need to select your WordPress database.
Once you select your database, you will see a list of tables in your WordPress database. Go ahead and click on the browse link next to WordPress users table.
You will now see the list of entries in your users table. The number of rows depend on how many users are registered on your WordPress site.
Next, you need to click on the Edit link next to the username of the admin user.
This will open up a form where you can edit the information stored in WordPress database for that user.
Scroll down to user_pass field and type a new password in the ‘value’ column. After that you need to select MD5 in the ‘function’ column.
Don’t forget to click on the Go button at the bottom to save your changes.
That’s all, you can now login to your WordPress site on localhost using the new password.