1. Home
  2. Knowledge Base
  3. How to Quickly Reset Your WordPress Admin Password

The need for a password reset arises when a user has forgotten their password or entirely does not have access to their email for a standard password reset. Whatever the reason, everyone needs to reset their passwords from time to time. WordPress makes it easy to change your password with a few steps whenever the need arises. In this article, we will be going through how to reset your WordPress admin password.

  • Reset your WordPress password through the login screen (with access to your email)
  • Reset WordPress Admin Password (with no access to email)


Every WordPress site has a login screen, even if you are the only registered user on the entire site. For this method, it is assumed you have access to the email you used for registration.

Step1: Navigate to your WordPress login page by typing in “domain.com/wp-admin” on your browser. Then click on the “Lost your password” link.

Step2: On the next screen that appears, enter the email address of your WordPress administrator account in the username field provided.

Click on the “Get New Password” button. The platform will send you an email containing a link that will enable you to create a new password.


This method should be used if you don’t have access to your email or when your WordPress site isn’t sending emails correctly. This solution entails having to reset your admin password directly in the database through the phpMyAdmin.

It is important to note that working directly from phpMyAdmin could disrupt your site if not done correctly.Step1: In most cases, your web hosting provider will provide access to your database through your control panel. if you are using Trulywp, you can access phpMyAdmin through your Trulywp dashboard.

This will launch the phpMyAdmin application. This is where you will locate and select your WordPress database. On the left-hand side, click on your database. 

Then scroll down and click on the wp_users table from the list and click on the Browse link next to it.

Note: some sites might have a prefix different from the one shown in the screenshot above. This is mostly for security purposes. Prefixes might be named different like “wp28_users”, “wp56_users”. etc.

Step3: From here you can now see the rows in your WordPress users table. Click on the edit button next to the username you want to change the password for.

Step4: In the user_pass column, you will need to delete the user_pass field and replace it with your new password.  Under the function column, select MD5 from the drop-down menu and click on the Go button.

You have successfully reset your WordPress admin password. Your password is then encrypted using MD5 hash and is stored in the database. You can now return to your WordPress login page and use your updated admin credentials to access your site.


If you are an admin user, you can reset your password via FTP.

Step1: login to your site via FTP and download your active theme’s functions.php file.

Step2: Edit the file and add the code below to it at the beginning after the opening “<?php” tag:

Step3: Enter the new password you want to change to for the main admin user. The “1” is the user ID number in the wp_users table.

Step4: Upload the modified file back to your site.

Step5: Once you are able to log in, go back and remove this new code. if not removed, it will continually reset your password on every page until you do so.


Was this article helpful?

Leave a Reply

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