Resetting your WordPress password

WordPress provides several ways to reset your user password. This article walks you through the following methods which range from simple to advanced:

For DreamPress sites

If your site is running on DreamPress and you reset the password as shown below, it's possible it may not work when you try to log in. This is most likely due to memcache which is still storing the old password.

To fix, just log into your server via SSH and run the following command:

[server]$ wp cache flush

Resetting your password in the WordPress panel

This option only works if you currently have access to your panel. This assumes you already know your current password and have logged in, then you're attempting to change it to something else.

  1. Log into your WordPress dashboard at 'example.com/wp-login.php'.
  2. In the left pane, click 'Users > All users'.
  3. From the list of all current usernames that appear, click the user you wish to reset the password for.
  4. On the user edit page, scroll down to the section titled 'Account Management'.
  5. Click the Generate Password button.
  6. A very long auto-generated password displays. If you would like to keep this password, click the Update Profile button. Otherwise, edit the password field to enter your chosen password, then click Update Profile.

Using the 'Lost your password' link

If you know your WordPress username, or the email address you use to sign in, you can reset the password on the login page.

  1. Navigate to your login page at 'example.com/wp-login.php'.
  2. Click the 'Lost your password?' link under the login box.
  3. On the next page, enter either your WordPress username or email address you use to sign in.
  4. Click Get New Password. An email is sent that includes a link to reset your password.
  5. Clicking the link brings you back to the login page with a new password filled in. Click Reset Password.

    Copy this password to a text file like notepad (Windows) or TextEdit (Mac). If you just click 'Reset Password' you will be taken back to the login page, but the user/password fields may be blank. If you've copied it to a text file, you can easily paste it back into the new login prompt.

  6. After you're logged in, you can reset it in the panel as shown above.

Resetting in phpMyAdmin

If you have access to your DreamHost dashboard, you are able to view your phpMyAdmin credentials and log into your database.

  1. Log into your DreamHost panel.
  2. Navigate to the MySQL Databases page. On this page you can find all of your database credentials you'll need to log in. View the following article for full details on how to find this information and log into phpMyAdmin:
  3. In the left pane, click your database name.
  4. Click the 'wp_users' table.
  5. You'll see a list of usernames. Click the 'Edit' link to the right of the username you want to reset the password for.
  6. A page opens with your user's data.
  7. To the right of 'user_pass' you'll see a box with long string of numbers and letters. Delete everything in this box.
  8. Type in your new password.
  9. From the dropdown next to your username, select 'MD5'.
  10. Finally, click the Go button. You should now be able to log in with the new password.

Using wp-cli

wp-cli is a command line tool you can use on your DreamHost server to manage your WordPress site. For more details, view the following article:

  1. Make sure the username your WordPress site is under on the server is a Shell user. View the following article to confirm.
  2. Log into your server via SSH.
  3. Navigate to your WordPress directory. Most likely, you can use the following command. Make sure to change the site to your website name.
    [server]$ cd example.com
    If your site is in a subdirectory, add that subdirectory name to the end of the site name. (example.com/blog)
  4. You are now in your WordPress directory. From here you can run wp-cli commands. Run wp user list to view a list of current users. Note the number to the left of the username.
    [server]$ wp user list
    +----+-------------+---------------+------------------+---------------------+---------------+
    | ID | user_login  | display_name  | user_email       | user_registered     | roles         |
    +----+-------------+---------------+------------------+---------------------+---------------+
    | 1  | myusername  | myusername    | user@example.com | 2018-03-17 11:14:28 | administrator |
    +----+-------------+---------------+------------------+---------------------+---------------+
  5. To update the username, run the following command. You just need to update the 'ID' number and password fields.
    [server]$ wp user update 1 --user_pass=MyNewPassword$123
    Success: Updated user 1
  6. You will immediately be emailed a notification that your password has been changed.
  7. You should now be able to log in with this new password.

See also

Did this article answer your questions?

Article last updated PST.