WordPress

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

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)

 

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

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

 

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

 

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

 

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

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

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

 

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.

Sufiyan Shaikh

Recent Posts

CyberPanel Server Error (500)

Server Error (500) when trying to access the Cyberpanel If you are getting this error while accessing the cyberpanel, there…

1 year ago

How to connect and use github with DirectAdmin git feature

How to connect git with DirectAdmin Login into SSH and run the following command to create a new key pair…

1 year ago

How to host next js app on cpanel

How to host next js app in cpanel Login > Setup Node.js App > Create Application Enter the values shown…

1 year ago

WHMCS Development environment set

Update via PHPMYADMIN: Disable Captcha : UPDATE tblconfiguration SET value = '' WHERE setting = 'CaptchaSetting'; Update WHMCS link: UPDATE…

1 year ago

Lagom WHMCS notification hide pages list

3dsecure Access Denied Affiliates Affiliates Signup Announcements Banned Configure Products Downloads Downloads Denied Error Login Logout Password Reset Ticket Feedback…

1 year ago

Export/Import database via command line(ssh)

Export Database via SSH mysqldump --routines -u databaseusername -p databasename > database.sql   Import Database via SSH mysql -u databaseusername…

1 year ago