How to Reset WordPress Admin Passwords

The methods for resetting admin passwords can be divided into 3 situations. If you have access to your admin dashboard. If you have access to your registered email. If you can neither access your admin dashboard nor your email.

If you have access to your admin dashboard, it’s easy to reset passwords when you have control of your account.

Reset your admin password via the dashboard

If you want to change your password for any reason, such as to increase the security of your account, simply go to your Admin Dashboard and get it done.

Go to Users > Profile to access the User Profile screen.

Scroll down to see the Account Management section.

Click Set New Password and WordPress will automatically generate a new password for you. Keep clicking this button if you want to see more passwords. You can also edit it manually if you wish.

If you have logged in on multiple devices, you can select the Log out everywhere else option so that all your logins expire on other devices. Don’t forget to scroll down and click the Update profile button to save your new password.

Reset admin passwords of other users via the dashboard

Let’s assume you are the administrator of a website. You have the authority to reset other users’ passwords at their request or due to password strength. In such cases, you need to visit your admin dashboard and change the passwords.

Go to Users > All Users to bring up a new screen.

Click Edit under the username whose password needs to be changed. A profile screen will be displayed.

From here, you will need to follow the same steps as resetting your own password. Don’t forget to inform your users of their new passwords the next time they log in.

If you have access to your registered email

Resetting your password is relatively easy if you have access to your registered email.

Reset admin password via the forgotten password link

Click on the “Forgotten password” link.

A new screen will be displayed. You must enter your username or email address here. Once you have entered your username or email address, check your email. It may take a while before you receive the email. So wait until you receive it.

Click on the link in the email. You will then be redirected to the admin login page to reset your password. Enter your new password here and click on Reset password.

From now on, you can use the new password to access your WordPress administrator account.

If you can neither access your admin dashboard nor your email

If you’ve lost both your password and your email, resetting your password will be much more difficult. You’ll need to have some knowledge of the backend to get things done.

Please read our guide carefully and make sure you fully understand the steps before you put them into action.

Reset your admin password with FTP

Log in to your website via FTP and download the functions.php file of your theme.

Edit the offline file and insert this code directly after the first “<?php”:

wp_set_password( 'PasswordProtectWordPress', 'BWPS Team' );

In this example, we set the password ‘PasswordProtectWordPress’ for BWPS Team users. Of course, you can customize your setting according to your needs.

Upload the edited files back to your website. When this process is complete, you can log in to your WordPress administration page with your new passwords.

Remember to remove the code after you have successfully logged in. Otherwise, your password will be reset every time you visit the site.

Resetting the admin password with phpMyAdmin

Using phpMyAdmin is another way to solve your problem. Use this method if you are familiar with codes. Otherwise, you should look for further advice or other solutions.

Considering that any error in phpMyAdmin can cause significant damage to your website, we recommend that you back up your database in advance.

Now let’s move on to the steps to reset your passwords.

Log in to your phpMyAdmin and click on Databases. A list of databases will appear on the left side of the screen. Click on your database. Right after that you will see a dropdown menu. Search for wp_users and click on it.

The information will change on the right-hand side. Here you will see a list of all registered users of your website.

The corresponding password is displayed in the user_pass column. Please remember that this is an encrypted password, not the real one. To change the password, click on Edit. Change your WordPress password in the user_pass row under the Value column.

In the Function column, select MD5 from the drop-down menu to encrypt your new password.

Once you’re done, click the Go button in the bottom right corner of the screen and your changes will be saved. Return to your WordPress admin login and try out your new password.

Conclusion

It’s easy to reset your WordPress admin password if you have control over your website or email. You can easily generate your new password via the dashboard or the “Forgot password” link.

If you have forgotten both your WordPress administrator password and your registered email address, you should use phpMyAdmin or FTP to reset the password. Since these methods require a bit of coding knowledge, you should follow our instructions carefully. Last but not least, you should approach everything with caution and always create a backup of your database.