Javatpoint Logo
Javatpoint Logo

How to reset Password in WordPress

If you forget or lost the password of your account, WordPress gives you an option to reset it through different methods.

In WordPress interface, password can be recovered via email. But on some hosts, where email is not working properly, other methods are used.

There are four ways to reset WordPress password.

  • Change password from dashboard.
  • Reset password via email.
  • Manually reset password through database via phpMyAdmin
  • Using emergency password reset script.

Change password from dashboard

Follow the following steps to reset password from dashboard.

1) Login to your WordPress account.

2) Click on Users from dashboard menu.

Wordpress How to reset password in wordpress1

3) Hover your admin username and click on Edit as shown in below snapshot.

Wordpress How to reset password in wordpress2

4) Scroll down to the bottom, enter you new password then click on Update Profile button.

Wordpress How to reset password in wordpress3

5) You will get a message that your profile has been updated as shown in the following snapshot.

Wordpress How to reset password in wordpress4

Reset password via Email

Follow the following steps to reset password via email.

  1. Go to your WordPress login page.
  2. Wordpress How to reset password in wordpress5
  3. Click on Lost your password? link.
  4. Enter your WordPress username or email and click on Get New Password.
  5. Wordpress How to reset password in wordpress6
  6. You'll get an email for password reset from WordPress on the described email. A link will be given in the email to reset your password, click on that link.
  7. Type new password, confirm it and then click on Reset Password.

  8. Manually resetting password through phpMyAdmin

    Follow the following steps to reset password manually through phpMyAdmin.

    1. Go to phpmyadmin from your server
    2. Click on the name of your WordPress database.
    3. A list of tables of your WordPress database will be shown. Select the wp_users table.
    4. Wordpress How to reset password in wordpress7
    5. Click on Edit on your WordPress admin user.
    6. Wordpress How to reset password in wordpress8
    7. Now in User_pass field, write the password you want and select MD5 from the dropdown table as shown in the below snapshot.
    8. Wordpress How to reset password in wordpress9
    9. After entering new password click Go.
    10. phpMyAdmin will send you a successful message for the updation of database record.

    Using emergency password reset script.

    If above options doesn't work, try this one. It is a PHP script and not a plugin.

    Points to remember

    • To use this script, admin username is required.
    • Script updates admin's password and sends an email to the admin's email.
    • If by chance you haven't received email, your password will still be changed.
    • The script need to be placed at the root of WordPress installation.
    • Script needs to be removed after finishing due to security reasons.

How to use emergency reset script

  • Copy the script from emergency password reset script link https://codex.wordpress.org/User:MichaelH/Orphaned_Plugins_needing_Adoption/Emergency
  • Place this script into a file called emergency.php in root of your WordPress installation.
  • Open your browser with the link http://example.com/emergency.php
  • Enter administrator username and the new password and click on Update options. Changed password message will appear and an email will be sent to admin's email containing changed password information.
  • Surely delete emergency.php file from your server as someone else could use it to change your password.




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA