February 13, 2022

How to Reset WordPress Password phpMyAdmin

Do you want to reset WordPress password phpMyAdmin?

If you are unable to reset your WordPress password, then there is a way to reset it directly in your WordPress database using phpMyAdmin.

In this article, we will show you how to easily reset a WordPress password from phpMyAdmin.

Why Reset WordPress Password from phpMyAdmin?

WordPress makes it super easy to recover a lost password. You can simply go to the login screen of your WordPress website and click on the ‘Lost your password?’ link.

When you click on the link you are taken to the password reset page. Once you enter your username or email address, WordPress will send a password reset link to the associated email address.

However, if you don’t have access to that email address, or your WordPress site fails to send an email, then you will not be able to reset your password.

In such a situation, you will need to reset your WordPress password directly in the database. The easiest way to do that is by using phpMyAdmin.

Having said that, let’s see how you can easily reset a WordPress password from phpMyAdmin.

How to reset WordPress Password PhpMyAdmin

If you don’t want to watch the video tutorial, then you can continue reading the text version below.

First, you need to login to the cPanel dashboard of your WordPress hosting account. Next, you need to navigate to the Databases section where you can click on the phpMyAdmin icon.


This will launch the phpMyAdmin app where you need to select your WordPress database.

You will now see the list of tables in your WordPress database. You need to look for the wp_users table in this list and click on the Browse link next to it.

Note: Table names in your WordPress database may have a different prefix than the one we are showing in our screenshot. Changing table prefixes can improve the security of your WordPress site.

You will now see the rows in your WordPress users table. Go ahead and click on the edit button next to the username whose password you wish to change.

PhpMyAdmin will show you a form with all the user information fields.

You will need to delete the value in the user_pass field and replace it with your new password. Under the function column, select MD5 from the drop down menu and then click on the Go button at the bottom of the form.

Your password will be encrypted using the MD5 hash and then it will be stored in the database.

Congratulations! You have successfully changed your WordPress password using phpMyAdmin.

Some of you may be wondering why we selected the MD5 hash to encrypt the password. WordPress previously used MD5 hash to encrypt passwords, but since WordPress 2.5 it has been using stronger encryption technologies.

However, WordPress still recognizes MD5 to provide backward compatibility. As soon as you log in using a password string stored as an MD5 hash, WordPress will automatically change it to use the newer encryption algorithms.

We hope this tutorial helped you learn how to reset a WordPress password from phpMyAdmin.

How to WordPress Password reset via WP-CLI

If you have access to the site, another option for resetting or changing a password is via WP-CLI. You can change any user’s password this way.

Start by accessing your site via WP-CLI as you normally would.

To change a password, navigate to the root directory – the folder where you installed WordPress. Get a list of users by typing this command:

wp user list

Find the user whose password you want to reset and make a note of their user ID. If it’s the site admin, the user ID will be 1, but you can use this method to change other user passwords too.

Type the following command:

wp user update 1 –user_pass=password

Replace “password” in the example above with the new password for the user and make sure you use a much stronger password than that.

If the user ID you want to work with isn’t 1, replace the 1 in the example with their user ID.

Read More

Leave a Reply

Your email address will not be published.