How to change WordPress password from database [Easy guide]

The first option to change your WordPress password is from the ‘Forgot password‘ option which you can find on the login page.
However, if don’t have access to the email which you have entered in WordPress as a user, this guide is for you to change WordPress user password directly from the database(phpmyadmin).

 

Requirements 

  1. Database name (you can find it from wp-config.php file)
  2. phpMyAdmin access (you can get it from your hosting Control Panel access)

Once you have the above access and information, you can now reset/change WordPress password from the database easily.

Steps

1) Login into the control panel and click on phpMyAdmin to login into the database

how to reset wordpress password from phpmyadmin

2) Select your database (you can find which database is being used by checking wp-config.php file under root folder of your domain or public_html folder)

change wordpress password from database select database

 

3) Now select table ending with _users (in my case wp0f_users)

change wordpress password from database select table

4) You should now get the option to edit the column. Click on edit

change wordpress password from database select database edit column

 

5) Change the function of user_pass column to ‘Md5’

change wordpress password from database select database change to md5

 

6) Enter your new password in the ‘Value‘ of user_pass and click on Go

change wordpress password from database click go

 

7) You should get a Success message similar to the below one

change wordpress password from database reset succcessful

8) Now you can log in to WordPress with your new password

change wordpress password from database try new details

Congratulations! Your log in should be successful now and you have gained back access to your WordPress website easily

wordpress loggged in with new details

 

Important Note

Resetting password from the database is easy however you should first take a backup of your database and then proceed with our guide.
If steps are not followed correctly, it may break your website or you may end up breaking your website.
Make sure to follow our guide correctly and if possible take professional help.

Leave a Comment