How to Retrieve your WordPress Password?

How to Retrieve your WordPress Password?

Don’t you think passwords are not easy to memorize? Yes, for many, it is not easy to feed all the passwords in mind and to remember which password belongs to which account.

If you have ever lost your WordPress Password to access the dashboard, it can be really bothersome. Luckily WordPress provides the options to reset or retrieve the WordPress. There are a few ways to reset your password in WordPress.

In this article, I’ll explain the four ways of retrieving your WordPress Password.

Method 1) Reset Password via Login Form

1. Go to the WordPress login screen like

2. There is a link of Lost your password below the login form. Click on this link.

Click On Lost Password

3. This will redirect you to another page, where you have to give your username or email address of WordPress.

4. Enter your WordPress Username or Email Address.

5. After that, click on Get New Password button.

Generate New Password

Once you have entered your WordPress username or email address, WordPress will send a confirmation email to the WordPress email address.

6. Click on the link to reset your password. This Link will redirect you back to your site and will allow you to enter a new WordPress Password.

Confirm Mail

7. WordPress automatically generates a strong password for you.
You can change it according to your preference! I always recommend creating a strong Password that provides security.

Method 2) Reset Password via phpMyAdmin

This method is useful when we forget both password or username.

1. Go to the PhpMyAdmin.

2. Select your database on the left-hand side.

3. Now, Select the prefix_users table, generally, your table name is wp_users.

Go To Phpmyadmin

4. Here, You can also see username if you forgot it either. It’s saved in the user_login field.

5. Click on Browse to display the data.

User Password

6. Now click on Edit icon next to your user:

Edit The Username and Password

It will redirect you to the following page. You can see fields like this:

Edit User Password

In the user_pass field, there is an MD5 encrypted password. You can edit your new MD5 password. You can use Crypt Tool To encrypt the password.

7. Enter your new encrypted password into the user_pass field.

8. Click on Go when done!

Method 3) Resetting Password in WordPress via FTP

1. Login to your FTP client and edit file functions.php in the theme that is currently active on your WordPress blog.

2. Add the wp_set_password( ‘password’, 1 ); line of code after the first <?php line.

where ‘password‘ – Is your new password. 1 = Check ID, you can check from the phpmyadmin and If there is only one administrator, there is a big chance that your check ID is 1.

3. After adding the line, save the file.

4. Go to your site http://mywebsite/wp-admin/ and enter your Username or Email Address and Password.

Warning: Once you submit the login credentials, the login page will only reload without redirecting to the WordPress dashboard meaning that you’ve just reset the WordPress administrator password. Don’t try to log in again for now. Each time you will try to log in, the password will reset on every login attempt. Remove that line from the functions.php file you have added before, and save the changes.

Method 4) Resetting password via WP CLI

If you’ve installed WP-CLI on your server to manage WordPress site, you can use this method.

I recommend you to back up your site before doing any changes.

  • Change to the root directory of your WordPress site.
  • View a list of all users of your WordPress site using the command: $ wp user list
  • To update the password of a particular user, Use the command: wp user update id–user_pass=password
  • This id is the Check id that I’ve mentioned in the previous method.
  • The password is your WordPress new password.
Scroll to Top
Scroll to Top