change wordpress password

How to Change Your WordPress Password?

It’s important to have a strong WordPress admin password. Yet, strong passwords are often difficult, hence slip away from memory. Whether you’ve forgotten your password or wish to change it periodically for security reasons, you should know how to change it with success. 

Changing your WordPress password can be tricky at times, especially when you no longer have access to the dashboard or even the email id used while creating your site. Another tricky situation is when your WordPress site isn’t sending you the WordPress password reset link email correctly.

In this article, we’ll show you how to change WordPress passwords in different scenarios.

When To Change Your WordPress Password?

Different scenarios make it necessary to change WordPress passwords immediately. Here’s a roundup of some of the main scenarios:

  • You’ve forgotten your WordPress password.
  • You previously shared access to your account, and now you want back full ownership. 
  • You feel it’s time to change your website password for security and privacy reasons, but you’re unable to change your password through the lost password link on the login page due to an issue with the password reset link email.
  • You’re locked out of your site after your site has been hacked.

With all of this in mind, let’s elaborate on the different ways of changing your WordPress password.

Different Ways To Change WordPress Passwords

The method to choose depends on the particular scenario and whether or not you have access to your WP admin area. In the rest of this article, we delve into the four methods used to change WordPress passwords. 

Let’s start with the first method, which shows you how to change your password when you have WP admin area access. 

1. Change WordPress Password Through The Admin Dashboard

You may change your WordPress password through the admin dashboard if you’re already logged in. In this method, you don’t need access to your original email id used when you had set up your account. Hence, this method comes in handy when your WP login session is still active, and presently there is no access to your email account.

You’ll note that this method is less time consuming than when we try to change the password through the login screen (method 2). 

# Easy Steps:

Step 1 – Login to your WP admin dashboard and then head over to ‘Users’>’ Your Profile’.

Change WordPress Password Through The Admin Dashboard

Step 2 – Once you’re on the ‘Your Profile’ page, navigate down to the ‘Account Management’ section and click on ‘Generate Password’. This will let you set a new password without the need to remember the existing password. 

How to Change Your WordPress Password

Step 3 – Upon clicking ‘Generate Password’, WordPress will automatically generate a strong password comprising a series of characters that include letters (large and small caps), symbols, and numbers. Though it’s difficult to remember, it’s recommended you keep this password as it’s unique and secure. 

To remember it, you may use password management tools that allow you to save passwords and log in easily in future sessions. 

wordpress strong password

Step 4 – Optionally, you may decide to create your own password. For doing that, in the ‘New Password’ field, type in your choice of a series of characters, including letters (both large and small caps), symbols, and numbers. Ensure the password you set is strong, instead of being weak or medium.

You’ll know your password is strong once the box beneath the password field transforms green with a mention of the word “Strong” highlighted on it. 

You may also click on the ‘Log Out Everywhere Else’ button to stay logged on only the device you are presently using. This way, there is forced usage of your new WordPress password. It makes sense to make this selection when you’re:

  • Logged in on multiple devices or browsers.
  • Suspicious that someone might be accessing your site with your login credentials.

Step 5 – Finally, save your new password by clicking the button named ‘Update Profile’. 

Once you’re done, you will see a notification appearing on the top of your screen that reads,” Profile updated”.

Read the next method to learn how to set the password when you’re unable to access the login screen due to a forgotten password.

2. Change WordPress Password Using The Lost Password Link

We saw in the first method how easy it is to change your WordPress password from your dashboard. Now, what if you’re locked out of your site and have forgotten your password? You won’t be able to login! 

The good news is, WordPress makes it incredibly easy for you to recover an old password using the lost password link. All you have to do is follow the easy steps given below.

# Easy Steps:

Step 1 – Go to the login page and click on the link that says “Lost your password?”. This is what a typical login page without any customizations looks like in WordPress:

Change WordPress Password Using The Lost Password Link

Step 2 – Clicking on the link takes you to the password reset screen, asking you to “Please enter your username or email address.” You will have to enter that username or email address associated with your site’s WordPress account. Next, click the ‘Get New Password’ button.

click generate new password

Step 3 – Now, you would have received an email in your inbox. Click on the link provided in the email. It should take you to the following password reset screen:

wordpress password reset screen

As seen above, WordPress automatically generates a new password for you that is strong enough for security purposes. Though we strongly recommend you retain this password created by WP, you may decide to generate a password of your own choice.

Once you’re satisfied with the selected password, click on the ‘Reset Password’ button to save your new password. Following that, you’ll see a confirmation message that reads, “Your password has been reset. That’s it, and you’re done! You can now login with your new credentials. 

What if this super-easy ‘Lost your password’ link method fails you. The reasons for this include: you may no longer have access to the email address associated with your WordPress account, or you’ve stopped receiving emails from your WordPress site for reasons unknown to you.

If such a scenario arises, you will have to use phpMyAdmin to reset your WordPress password directly in the database. That’s our next method.

3. Change WordPress Password Via phpMyAdmin

If you’re logged out of your dashboard and further don’t have access to your WordPress email address, or you’ve stopped receiving emails, you can still reset your password. There’s a way to change your password directly in your site’s database via phpMyAdmin.

Any change you make in WordPress has information about it that gets stored in the site’s database. For that reason, we can locate every piece of information from within the database. This means every single important value, including the admin and user passwords, are found in the database. The good thing is, WordPress encrypts all such information so that hackers can’t do much damage once they have access to the database.

You must know how to access your WP database safely since the information stored in it is sensitive. That’s the reason, it’s important to back up your database before altering any of its values. Any wrong editing can lead to severe damage to your database and your website.

To change your password via phpMyAdmin, follow the easy steps given below:

# Easy Steps:

Step 1 – Login to your cPanel. For logging in, you’ll need access to the CPanel, which your hosting provider will help you with. The hosting provider will share details like the URL, username, and password required to access the cPanel.

Step 2 – Upon logging in, you’ll see the ‘Databases’ section. Here, click on the ‘phpMyAdmin’ option. 

Change WordPress Password Via phpMyAdmin

Step 3 – A new screen will open. On the upper left corner of the screen, select and click on the link of your particular WordPress site database.

change wordpress password by phpmyadmin

Step 4 – Within your WordPress database, you’ll discover a list of tables. Click on the ‘Browse’ link next to the table named ‘wp_users’.

browse link in phpmyadmin

Step 5 – The full list of your website’s admin users will prop up. Alongside each listed user will be their username and email address. Choose the user for which you want to change the password and click ‘Edit’.

Step 6 – Next, in PhpMyAdmin, among all the user information fields, delete the value found in the field named ‘user_pass’ and enter your new password in it.

user password in phpmyadmin

Step 7 – The final step is to select MD5 (i.e., WP algorithm to encrypt passwords) from the drop-down menu under the ‘Function’ column and then click on ‘Go’.

A success message will appear, meaning your new password has been set.

4. Change WordPress Password Via the Emergency Password Reset Script

If nothing else has worked, use WP’s emergency password reset script. To begin the process, you need to know the admin username. It’s a PHP script, giving you a dialog to reset your password.

# Easy Steps:

Step 1 – Copy and paste the Emergency Password Script in a note file. Then save it as emergency.php to the root of the installation of your WordPress. The root of your WP installation is the directory that contains wp-config.php, which you’ll find by logging into your site’s cPanel and going to File Manager > Public_html.

Step 2 – Open http://yoursitename/emergency.php in your browser. Here, replace yoursitename with the actual name of your site. 

Step 3 –  Next, you’ll be asked to enter the WordPress administrator username and the new password. After entering both, click on ‘Update Options’. As a result, the blog admin will get an email notification confirming the changed password information. 

Change WordPress Password Via the Emergency Password Reset Script

Step 4 – Once you’re done, ensure you’ve deleted the emergency.php file from your server. Leaving it onto the server is risky, as that allows anyone else to use it.

Final Thoughts

Through this article, we’ve laid out the four main methods of resetting or changing your WordPress password. The method you should use depends on the scenario. 

If you have any additional tips to share about this topic, let us know in the comments section below. 

Furthermore, if you enjoyed reading this article, you may want to read our articles titled: ‘How to Fix White Screen of Death? When WP-Admin Gives Blank page’ and ‘How to Fix “The Link You Followed Has Expired” Error on WordPress’.

Leave a Comment

Your email address will not be published. Required fields are marked *