How To Reset WordPress Password? (Perfect answer)

How to Reset Your WordPress Password from the WordPress Login Screen

  1. Go to your WordPress Login screen.
  2. Click Lost Your Password.
  3. Enter the email address associated with your WordPress login.
  4. An email will be sent to the email address you entered.
  5. Type in a New Password or keep the auto-generated password provided.


How do I recover my WordPress password without email?

3. Changing or Resetting WordPress Password Without Email Access

  1. Reset the password in cPanel.
  2. Reset the password in phpMyAdmin. If you’re with Kinsta, you can easily reset the password in phpMyAdmin through MyKinsta.
  3. Use FTP to reset the password.

How do I find my WordPress password?

Navigate to your WordPress login form (you can find your login link located at, with your domain name as “ Click the Lost Your Password? link below the login form to get a password reset email.

How do I reset my WordPress admin password?

Change your WordPress password in the database

  1. Step 1 – Access your database in PHPMyAdmin. Read our guide on how to access your database if you would like some help.
  2. Step 2 – Open the users table. Click the users table in the menu to the left.
  3. Step 3 – Enter new password.
  4. Step 4 – You are done!

How do I reset my WordPress account?

Reset WordPress With A Plugin

  1. Install and activate the WP Reset plugin.
  2. Go to Tools > WP Reset.
  3. Scroll down to the Site Reset section.
  4. Type “’reset” in the Confirmation field.
  5. Click the Reset Site button.
  6. A popup message will appear asking you to confirm that you want to reset your site.

How do you unlock a WordPress user?

‘ Click ‘Locked IP Addresses’ tab at the top. From the list of locked IP addresses, you should be able to identify the IP address by the date and username. Then simply tick it and choose to unlock it in the drop-down or click ‘Unblock.

How do you unlock a WordPress site?

How to Fix the Common Causes of Being Locked Out of WordPress (7 Methods)

  1. Restore Your WordPress Site’s Login URL.
  2. Reset Your Password With phpMyAdmin or WP-CLI.
  3. Create a New User With Administrator Privileges.
  4. Disable Your Security Plugins.
  5. Troubleshoot the White Screen of Death (WSoD)
  6. Resolve Database Connection Errors.

Resetting Your Password

When it comes to WordPress, there are several options for resetting your password. (Normally, the quickest and most convenient method of resetting your password is to click on the “Forgot your password?” link on the main login page for your blog or website.) It is possible, however, that you will need to take additional steps to reset your password in some circumstances (particularly if your email is not functioning properly). Here is a list of the several methods for resetting a password. Depending on the sort of access that you still have to your website, the approach that you utilize will differ.

To Change Your PasswordTo Change Your Password

In current versions, you may change your password by following these steps:

  1. UsersAll Users may be found under the Users option on the Administration Screen. To make changes to your username, choose it from the drop-down menu. The Generate Password button may be found at the bottom of the Edit User screen
  2. Scroll down to the New Password section and click it. The automatically created password can be overwritten by inputting a new password in the area given if you want to make a change. When you click on the strength box, it will tell you how excellent (strong) your password is. After that, click the Update User button.

Your new password will be activated soon after you create it. a b c d

Through the automatic emailerThrough the automatic emailer

If you know your username or the email address associated with your profile, you may utilize the “forgotten password” function of WordPress to recover your password.

  • Go to your WordPress Login page (it should look something like this). To recover your password, click on the “Forgot your password?” link. You will be sent to a page where you must input some information. If you don’t know your username, you can use the email address associated with your account. Wait patiently for your new password to be sent to you through email
  • As soon as you have received your new password, log onto your profile page and change your password to something you will be able to recall

Through MySQL Command LineThrough MySQL Command Line

  • Visit the md5 Hash Generator website, or. Use Python to generate a key, or.
  • On Unix/Linux, the following is true:
  1. To do this, create a text file named wp.txt that contains nothing except the new password
  2. Tr -d “rn” wp.txt | md5sum | tr -d’-‘
  3. Rm wp.txt
  4. Md5sum | tr -d’-‘
  1. Create a text file named wp.txt that contains only the new password and nothing else. then type one of the following commands: md5 -q./wp.txt
  2. Rm./wp.txt (if you want the MD5 hash printed out)
  3. Md5 -q./wp.txt | pbcopy
  4. The MD5 hash should be copied to the clipboard if you want it to be
  1. “mysql -u root -p” (log in to MySQL)
  2. “mysql -u root -p” (log out of MySQL)
  3. Input your mysql password
  4. “use (name-of-database)” enter the database name (Choose WordPress database from the drop-down menu)
  5. “display the tables
  6. ” If you find a table with the word “users” at the end of its name, write the following: “SELECT ID, user login, user pass FROM (name of the table you discovered)
  7. ” (This will give you an understanding of what’s going on within the body.) “UPDATE (name-of-table-you-found) SET user pass=”update (name-of-table-you-found) set user pass=” (MD5-string-you-made) ” WHERE ID = (id -of-account-you-are-resetting-password-for)
  8. ” ” WHERE ID = (id -of-account-you-are-resetting-password-for)
  9. ” (which really changes the password)
  10. “SELECT ID, user login, user pass FROM (name-of-table-you-found)
  11. ” “SELECT ID, user login, user pass FROM (name-of-table-you-found)
  12. ” It is necessary to (check that the value has been modified)
  13. (type Control-D to quit the MySQL client)

Note that if you have a recent version of MySQL (version 5.x? ), you may have MySQL construct the MD5 hash for you instead of manually doing so.

  1. Step 1 is skipped
  2. Instead, complete the following for step 7:
  • “UPDATE” is an abbreviation (name-of-table-you-found) “SET user pass = MD5(‘(new-password)’) WHERE ID = (id -of-account-you-are-resetting-password-for)
  • ” “SET user pass = MD5(‘(new-password)’) WHERE ID = (id -of-account-you-are-resetting-password-for)
  • ” The password is changed (in actuality, the password is changed).

It’s important to note that even if the passwords are salted, which means they look like $P$BLDJMdyBwegaCLE0GeDiGtC/mqXLzB0, you can still log in to WordPress by replacing the password with an MD5 hash. a b c d

Through phpMyAdminThrough phpMyAdmin

This article is intended for individuals who have access to their database using phpMyAdmin. Please keep in mind that you are using phpMyAdmin at your own risk. If you have any doubts about your ability to utilize it, get more assistance. WordPress is not liable for any data loss that occurs.

  1. To begin, log into phpMyAdmin and choose databases from the drop-down menu. A drop-down menu will appear with a list of databases. Select your WordPress database from the drop-down menu.

Selecting a database in PHPMyAdmin

  1. All of the tables contained inside your database will be shown. When in doubt, clickStructure
  2. Search forwp usersin the Table column
  3. And then click on the button forbrowse. Find your username in the user login folder. In some versions of phpMyAdmin, the edit button may be represented as a pencil icon.

Select users from the PhpMyAdmin users table

  1. The user id you entered will be shown. Select Edit from the drop-down menu. A big series of digits and letters appears immediately after the user pass. These should be selected and deleted, and then your new password should be entered. Fill in the blanks with the password you want to use. Normal typing is acceptable–but keep in mind that it is case-sensitive
  2. And If we use the above example, the new password will be ‘rabbiteatcarrots.’ Once you’ve done so, click on the dropdown menu that appears and pick MD5 from the list

On the user pass entry, PhpMyAdmin selects the MD5 function to use.

  1. Check to check that your password is accurate and that MD5 is selected in the MD5 field.

PhpMyAdmin user pass row using MD5 function with the password “rabbitseatcarrots” as the username

  1. Click on the ‘Go’ button, which is located at the bottom right of the screen. On the login page, type in your new password to see whether it works. You should double-check that you followed these directions completely if it doesn’t work.

Other Tutorials using phpMyAdminOther Tutorials using phpMyAdmin

Additionally, if you are logged in as the admin user, there is a simple option to reset your password through FTP.

  1. Log into your site’s FTP account and download the functions.php file for your active theme
  2. Edit the file and insert the following code at the beginning of it, immediately after the first?php:

Set the password for the website using the function Wp set password(‘password’, 1); Enter a new password for the primary admin account that you created. The number “1” refers to the user ID number in the wp users database table.

  1. Replacing the original file with the changed version on your website
  2. Once you are allowed to log in, make sure to go back and erase the code you were using previously. Every time you visit a page, it will attempt to reset your password until you do so.

Through WP CLIThrough WP CLI

WP CLI is a command-line tool that allows you to manage your WordPress installation from the command line. $ wp user list to view a list of all users. Locate the ID of the user whose information you want to change. $ wp user update 1 -user pass=$ wp user update 1 -user pass= $UP3RstrongP4 By changing “1” with the user id you wish to update, you may get the following result: More information on wp cliTop

Using the Emergency Password Reset ScriptUsing the Emergency Password Reset Script

If none of the other procedures indicated above are successful, the Emergency Password Reset Script should be tried. Please keep in mind that this is not a plugin, but rather a PHP script. a b c d

A Word of Caution:A Word of Caution:

  1. You must be aware of the administrator’s username in order to utilize the Emergency Password Reset Script. It automatically changes the administrator’s password and sends a notification email to the administrator’s email address. It is still possible that you will not receive the email
  2. However, the password will be changed nonetheless. It may be accessed without the need to be logged in. If you could just log in, you wouldn’t need the script, would you? The script should be placed in the root directory of your WordPress installation. Do not include it in your WordPress Plugins directory
  3. Instead, include it in your WordPress Plugins directory. Remember to remove the script when you are finished using it for security reasons.

Directions for Use:Directions for Use:

  1. The emergency script may be found at Emergency Password Scriptand should be placed at the root of your WordPress installation (the same directory that contains wp-config.php) in the emergency.php file
  2. Open Settings in your browser, input the administrator username (which is generally admin) and the new password, and then click Update Options to save your changes. A notification is presented informing the user that their password has been changed. There is an email sent to the blog administrator informing him or her of the new password details
  3. When you are finished, remove the file emergency.php from your server. It should not be left on your server since it might be used by someone else to change your password.

Additional ReferenceAdditional Reference

  • Another password reset script that may be used even if you don’t know the username or email address is available here.

WordPress: How to Change or Reset Your Admin Password

If you are dissatisfied with iPage, we will refund your money without question.

There were no questions asked. During the first 30 days, we’ll return the whole amount of your hosting payments. iPage’s Customer Satisfaction Score Your complete happiness is our main goal, and we are convinced that you will be satisfied with the following services:

  • The ease with which a website may be created
  • Courteous, round-the-clock chat assistance
  • The cutting-edge security suite provided by SiteLock

Still, if you give us a try and realize that iPage isn’t the right fit for you, we believe you should be entitled to a refund. What Will Happen to Your Domain Name? Please keep in mind that if you register a name with iPage, there is a non-refundable $15 domain registration cost. It not only covers our expenses, but it also assures that, even if you are disappointed with your iPage experience, you will not be forced to give up control of your domain name. You’ll be able to transfer it or just aim it in a different direction.

How to Reset a WordPress Password from phpMyAdmin

Is it your intention to reset your WordPress password with the use of phpMyAdmin? It is possible to reset your WordPress password directly in your WordPress database using the phpMyAdmin tool if you are unable to do it using the WordPress administration interface. In this post, we will demonstrate how to quickly and simply reset a WordPress password using the phpMyAdmin interface.

Why Reset WordPress Password from phpMyAdmin?

WordPress makes it quite simple to recover a forgotten password. You can easily reset your WordPress website’s password by going to the login screen and clicking on the ‘Forgot your password?’ option. It takes you to a page where you may reset your password when you click on the link. Once you have entered your username or email address, WordPress will send an email with a password reset link to the address you have provided. Unless you have access to that email address, or unless your WordPress site is unable to send an email, you will not be able to change your password.

You might be interested:  How To Install Wordpress In Cpanel? (Perfect answer)

phpMyAdmin is the most convenient tool for accomplishing this.

How to WordPress Password From PhpMyAdmin

Subscribe to WPBeginner’s newsletter. Continue reading the written version below if you do not wish to view the video tutorial. To begin, you must first enter into the cPanel dashboard of your WordPress hosting account using your username and password. After that, you must visit to the Databases area, where you may click on the phpMyAdmin button to access the administration interface. This will activate the phpMyAdmin application, where you will be prompted to pick the WordPress database to work with.

  • In this list, you must seek for the wp users table and then click on the Browse link next to it to open it.
  • Changing the table prefixes on your WordPress site might help to increase the security of your site.
  • Make your selection and click on the edit button next to the username whose password you wish to modify.
  • You’ll need to remove the existing value in the user pass field and replace it with your new password in order to complete the process.
  • Your password will be encrypted using the MD5 hash algorithm and then saved in the database as a hash value.
  • Using phpMyAdmin, you have successfully changed the password on your WordPress installation.
  • We chose it since it is fast and secure.

WordPress, on the other hand, continues to acknowledge MD5 in order to maintain backward compatibility.

In this video, you will learn how to reset a WordPress password using phpMyAdmin.

You may also be interested in our comprehensive step-by-stepWordPress security guide, which will help you keep your WordPress site safe, or our list of must-have WordPress plugins.

On top of that, you can follow us on Twitter and Facebook.

This means that if you click on one of our affiliate links, we may receive a fee.

See how WPBeginner is supported, why it is important, and how you can help us by donating. The Editorial Staff at WPBeginner is a group of WordPress specialists, lead by Syed Balkhi, who provides guidance and support. Over 1.3 million readers around the world put their trust in us.

Reader Interactions

The 11th of January in the year 2022 Will M.7min. be there? Read Occasionally, it is necessary to change one of one’s passwords for security reasons. WordPress makes it simple to change your password if you ever need to, but in order to do so, you’ll need access to the email address that you used when you first established your site. If you don’t, things can become a little complicated. The good news is that there are a couple of solutions available for this issue. In this tutorial, we’ll show you how to do the following:

  1. Through the login screen, you may change your WordPress password. WordPress passwords may be changed directly from the WordPress dashboard. phpMyAdmin may be used to reset your password.

Before we get into the technical details, let’s talk about why it would be essential to change your password in the first place.

Why You Might Need to Reset Your WordPress Password

Changing any of your passwords shouldn’t be a major undertaking. From a security standpoint, it’s frequently one of the most logical things you can do. Periodic password upgrades, especially if you re-use passwords across different platforms, lower the likelihood that someone else may get access to your accounts. You should, of course, avoid reusing passwords, but a large number of people do not adhere to this recommendation. Security breaches can occur even if you use different passwords for each website, which is another consideration.

Are You a Business Owner?

The security of your passwords should be of the highest importance if you are running an internet business. Use of a reputable company password manager is recommended in order to keep critical information protected. There are a number of additional reasons why you might want to update your WordPress password aside from security concerns:

  • You previously let someone else access to your account, and now you wish to regain full control over your account
  • It’s possible that someone else has figured out what your password is
  • The most likely reason is that you have forgotten your password (it happens to the best of us!).

If you find yourself in one of these scenarios, it’s rather simple to just request that WordPress change your administrator password. In reality, most platforms these days make it simple and straightforward to change your password on a consistent and regular basis. After all, it’s also in their best interests for you to keep your account safe since otherwise, you might not want to continue using that particular site in the first place. With that in mind, let’s take a look at how the process of resetting your password works inside WordPress.

How to Reset a Lost WordPress Password (3 Methods)

In the following sections, we’ll go through three different ways to recover a forgotten WordPress password. In order to complete the first step, you must be able to access the email address that is linked with your WordPress account. Additionally, the second way will work as long as you are already signed into your dashboard and do not have access to your email account. The next step is to learn how reset your WordPress password in the database, which is useful if you can’t access your email or your dashboard for some reason.

1. Reset Your WordPress Password Through the Login Screen

The login screen for every WordPress website is unique, even if you are one of the only users who has registered for the entire site. Here’s what it looks like when you don’t make any modifications: There are two fields: one for your username or email address, and another for your password, which are both required. It’s likely that you’ve forgotten your password by now, so your first step should be to click on the Forgot your password? link, which can be found directly below the login boxes on this page.

  1. Simply complete the following steps before clicking on theGet New Passwordbutton: You will receive an email from the platform alerting you that someone has asked that you reset your WordPress password.
  2. The following are good reasons to change both your WordPress and email passwords in that situation: For the time being, simply click on the single link contained inside the password reset email, and a new page will appear.
  3. WordPress, on the other hand, has taken the liberty of providing a strong choice for you, which we recommend that you use instead: Of course, you are free to use whatever password you choose instead.
  4. For those who wish to generate safe credentials for every site they visit without having to remember them each time they log in, password managers are a fantastic solution.
  5. Afterwards, assuming everything went properly, you’ll get a confirmation message similar to this one: Unless you spend a significant amount of time coming up with a new password, the entire procedure should just take a few of minutes to complete.

The next section will discuss yet another method of resetting your WordPress password.

2. Change Your WordPress Password Through the Dashboard

If you are able to access into your WordPress dashboard, you will be able to change your password without needing to use your email address to do so. This option is beneficial if you don’t have access to your email account at the moment, but your WordPress login session hasn’t yet expired. It also takes less time than changing your WordPress password through the login screen. This may be accomplished by going to your dashboard and selecting Users Your Profile from the drop-down menu. Anything linked with your account is contained inside this area.

  • All you have to do is click on the button labeled “Generate Password:” and your password will be generated.
  • You may, however, erase that password and put whatever you wish in its place.
  • Once you’ve entered your information into the box, click on theUpdate Profile link at the bottom of the page, and you’ll be all set.
  • It will reload the same tab with a simple notification that reads “Profile updated” at the top of the screen, which you may dismiss.
  • If you wish to double-check that the procedure was successful, simply log out of your account and log back in.
  • If it did, congratulations!

3. Choose a New WordPress Password Using phpMyAdmin

It is going to be covered in this last section, which is about how to reset your WordPress password directly from the site’s database. This approach differs significantly from the previous two and should only be used if you are unable to access both your email and your dashboard at the same time. When you make a change in WordPress, the program automatically saves that information in the database of your website. You can locate every single value on your site in that database, including the passwords for your account and the passwords for everyone else’s as well.

  1. It is unlikely that another party will gain access to your database and do significant harm.
  2. If you make a mistake and update the wrong value, you might cause serious harm to your website.
  3. Access to your database is usually provided by your web hosting provider via the control panel that you use to manage your website.
  4. There are various database-related options available here, but the one we are interested in is phpMyAdmin: A powerful tool that allows you to examine and interact with your databases through a straightforward interface, phpMyAdmin is available for free.
  5. In most circumstances, there should only be one database on that list, and you should choose that database from the drop-down menu.
  6. Among other things, there are tables for your site’s comments and postings as well as for its users: We’ll return to this tab at a later time.
  7. There, you will be able to export the contents of your database as a singleSQLfile.

Keep a copy of your backup somewhere secure where you won’t lose sight of it, since that copy of your backup might save your life if you accidentally modify the erroneous value when making changes to your database.

You’ll be able to see all of the tables in your database once more.

When a host sets up your database, they take this step to make it more difficult for attackers to break it afterwards.

That single row contains all of the information linked with it, such as the login, password, and email address.

The values you see here, on the other hand, are encrypted, which means that someone cannot just break into your database and duplicate them.

However, this does not rule out the possibility of changing the actual password.

On the following screen, you’ll see fields for all of the data you saw previously, as well as one for user password: In order to update your WordPress password, you must replace the contents of theValuecolumn in theuser passrow with the new password.

Make your selection from theMD5option by selecting it from theFunctiondrop-down menu to the left of where you wrote in your new password: MD5 is the algorithm that WordPress uses to encrypt the passwords that you create.

If you go back to your database’s swp userstable, you’ll notice that there’s a new encrypted value under theuser passcolumn for your user, which you should be able to access.


However, there are very few situations in which you would need to forcibly alter the password of another user. Briefly stated, you should only ever do this action if an individual has lost access to their account and has no chance of recovering it.

Further Reading

Make sure to check out the following resources for additional in-depth WordPress tips and tutorials:

  • How to perform a search and replace operation in the WordPress database
  • Incorporating Custom CSS into your WordPress site
  • How to Delete the Cache in WordPress
  • The best Instagram plugins for WordPress
  • 30 of the Most Effective WordPress SEO Techniques

Please see our custom-tailoredWordPress hosting service if you’re looking for a trustworthy and safe location to host your website as a last note. The 30-day money-back guarantee, fast setup, and 24/7 live support are all waiting for you to take advantage of this offer!


It should be simple to change your password at all times. However, you will frequently be required to have access to the email address that you used when signing up for the service. In the absence of such action, things might become problematic. Fortunately, as we’ve seen, WordPress allows you to change your password by accessing your database directly from within the platform. So, no matter what occurs, you will always be able to reset your WordPress password. Is there anything more you’d want to know about how to reset your WordPress password, or about any of the ways we’ve discussed?

Will Morris works as a writer on the WordCandy team.

How to Reset your WordPress Admin Password

It can be really aggravating if you have ever misplaced or forgotten your password in order to access the WordPressdashboard. WordPress gives a plethora of methods for resetting or changing your WordPress login credentials.

  • Change your password from your dashboard
  • Reset your password by email
  • Reset your password using phpMyAdmin
  • Reset your password via FTP
  • Reset your password with the emergency password reset script
  • WordPress How To Articles
  • WordPress Plugins

Consider waiting at least 15-30 minutes before attempting to log in again if you are unable to do so after two failed attempts. Otherwise, you run the risk of temporarily restricting access to your WordPress site.

Change WordPress Password from Dashboard

  1. Select Users from the drop-down menu. Hover your cursor over your Admin user and click on Edit
  2. When you see your Admin profile, scroll down until you see the option labeled “New Password.” Click on that option. You will notice a button called “Generate Password” to the right of it. When you click on the button, a random password will be generated for you, which you are welcome to use. You may, on the other hand, create your own password by simply clicking on the field and starting entering a new password in it. Please keep in mind that your password will be graded. Keep in mind to use capital letters, digits, and a symbol to assist make the password difficult to guess and difficult to guess. If you have difficulty remembering long passwords, consider using a password manager to keep track of all of your passwords. Many internet browsers have the ability to track your passwords as part of their feature set
  3. However, this is not always the case. To complete the password change, scroll down the page until you see the blue button that says “Update Profile.” Click on that icon to complete the process. To save your modifications, click on this icon.

Reset Your Password via Email

Alternatively, if you have forgotten your WordPress admin password, you may get it reset through email from the WordPress dashboard login page by following the instructions below:

  1. Enter the URL of your WordPress login page (for example,
  2. At the bottom of the page, click on “Forgot your password?” Please enter your WordPress admin user’s username or email address in the box below, and then click on Get New Password. You should get an email with the subject “Password Reset” in the next few minutes. The body of this email will include a link that will be located below the content. To get your password reset, go to the following website and click on the link within
  3. Then click onReset Password after you’ve entered your new password and confirmed it.

Changing Your WordPress Password via phpMyAdmin

If you have forgotten your WordPress password, you may change it directly in the database using the phpMyAdmin tool. This approach should only be used if you are familiar with working with databases in this manner, which you should be. It’s also suggested that you always make a backup of your database in cPanel before making any changes to your database directly in the database.

  1. Log in to your cPanel account. Click on phpMyAdmin, which is located under theDatabasessection. Select the name of your WordPress database from the drop-down menu
  2. Then choose thewp userstable from the drop-down menu. To edit your WordPress admin user, click on the Edit button beside your username. By clicking Ctrl – V, you may put your password into theuser passfield. Select MD5 from the drop-down menu. Finally, press the Go button. As a result of this, you should receive a success message from phpMyAdmin stating that the database record has been changed.
You might be interested:  How To Change Homepage On Wordpress? (Question)

Changing your WordPress password via FTP

FTP is another option if you don’t have access to your WordPress database or if you have forgotten your password.

  1. Log in to your website via FTP and browse to the functions.php file in your theme’s functions directory, which you should then download to your local computer. In my instance, it was /home/userna5/public html/wp-content/themes/twentyfourteen/functions.php
  2. In yours, it may be a similar path. Add the following to line 2, immediately after the first?php line:

Wp set password(‘password’,’admin’); For the purposes of this example, we’re setting the password to password and changing it for the useradmin; however, if your admin user has a different username, be sure to use it instead. Make sure that your WordPress password is strong and secure as well, since this will help to protect your data.

  1. Back up your modifiedfunctions.php file to the your/themes folder on the server. Please log in to your WordPress dashboard using the new temporary password that you have created just now
  2. As soon as you’ve successfully reset your password, delete thewp set passwordline from your localfunctions.phpfile and re-upload it to your website. WordPress will not have to reset the password every time the admin dashboard is accessed in the future as a result of this configuration.

Using the Emergency Password Reset Script

If all other options have failed, you may want to consider attempting to reset your password using the Emergency Password Reset Script. It is not a plugin, but rather a PHP script that does the work.

Important Notes

  • It is necessary to know the admin username in order to use this script. In addition to updating the admin password, the script sends an email to the admin’s email address. Even if you do not receive the email, the password has still been changed. Installing the script requires that it be placed in the root of your WordPress installation. Because of security concerns, it is critical to remove the script once it has completed its task.

Directions to use the script

  1. Create a new file named emergency.phpin the root of your WordPress installation, then paste the emergency script from theEmergency Password Script into it. In your web browser, navigate to the script. (
  2. Replace admin with your WordPress admin username and new password, then click on the Update settings button. When you’re finished, remove the emergency.php file from the server’s directory. Leaving this script running on your account is a security concern since it might be used by someone else to change your password.

Don’t Have a WordPress Hosting Account Yet?

If you do not have a WordPress Hosting account, you are missing out on the increased speed and performance that WordPress-optimized servers can provide.

Experience the benefits of WordPress Website Hosting, which comes highly recommended by BoldGrid.

How to reset the WordPress administrator password

This article explains how to change the WordPress administrator password on your site. The WordPress password recovery option may be used to reset your password by e-mail in most cases if you have forgotten your password in most cases. You can, however, use one of the following methods if this option is not accessible (for example, if the e-mail on your website is not functioning properly).

Method1: Reset the administrator password through Softaculous

You may connect into WordPress using Softaculous and then update the administrator password from within the dashboard. Follow these steps to accomplish this:

  1. Log in to your cPanel account. To learn more about how to get into your cPanel account, please check this page. Softaculous Apps Installer may be found under theSOFTACULOUS APPS INSTALLERsection of the cPanel home page by selecting it from the drop-down menu. The Softaculous installer page appears
  2. Click on Install Now. Select the icon from the icon list at the upper right of the screen (All Installationsicon). The list of programs that have been installed shows
  3. Locate the WordPress installation and then click on theicon to access the dashboard (Adminicon). WordPress is logged in with Softaculous
  4. Users can be found on the left sidebar of WordPress, and then All Users can be found on the right sidebar. Navigate to the administrator’s account and then choose Edit
  5. UnderAccount Management, next to New Password, select Generate Password from the drop-down menu. You may either use the automatically created password or enter in a new personalized password of your own. To update your profile, select Update Profile. You may now log in to WordPress as the administrator by entering the new password that you created.

Method2: Reset the administrator password using WP-CLI

Using the WP-CLI command line software, you may change the administrator password to something more secure. Please visit this post for more details on how to accomplish this.

Method3: Reset the administrator password in the database

The WordPress administrator password may be reset by going into the database and doing it manually. Follow these steps to accomplish this:

  1. Log in to your cPanel account. To learn more about how to get into your cPanel account, please check this page. Go to theDatabasessection of your cPanel home page and choose phpMyAdmin
  2. In the left-hand pane of phpMyAdmin, choose the WordPress database from the drop-down menu. A list of the tables in the database shows on the screen. Username _wp XXX is a three-digit number that indicates your cPanel username, andXXXis the name of the WordPress database in most cases. Select SQL from the top-level menu bar. The following statement should be copied and pasted into the SQL query text field. Replacenew password with the new password, and replaceadmin username with the administrator’s username in the corresponding fields. ‘wp users’ has been updated. SET ‘user pass’ = MD5(‘new password’) WHERE ‘wp users’ is the table to be searched. ‘user login’ is the same as “admin username”
  • In this SQL query, the password you give is hashed using the MD5 algorithm. WordPress needs that passwords be saved in the database in this manner in order for it to function properly. The new password will not be accepted if you attempt to change it in the password box directly
  • You will be unable to log in to WordPress. Some WordPress versions make use of the table namewp users, whilst other WordPress versions make use of a different name (for example, wpe6 users). Please use the table name that your WordPress version uses instead of the one shown above
  • Otherwise, use the default table name.
  1. In this SQL query, the password you give is converted into an MD5 hash. WordPress necessitates the use of this format for storing passwords in the database. In the event that you attempt to update the password box with the new password, you will be unable to log into WordPress. Depending on the WordPress version, certain tables have the namewp users, whilst others (for example,wpe6 users) have a different name. Please use the table name that your WordPress version uses instead of the one shown above
  2. Otherwise, do not use it.

Account Recovery

It is possible that you will find yourself in a scenario where you have lost access to your account at some time. We want to make sure that you take the appropriate precautions to avoid being locked out and that your account is set up to be recoverable if you are locked out.

Password Reset Process

Keeping track of and safeguarding your password is critical, however there may be times when you lose track of your password. The lost password form can be used if you need to reset a password that you have forgotten. Click on Get New Password once you’ve entered your username or email address into the text box. The Account Recovery Form is located at the bottom of this page if you do not remember your login or email address. Your account will be notified of this by sending an email to the address linked with your account.

Following the link leads you to a form in which you must enter your new password twice to complete the process.

↑ Section I: Table of Contents

SMS Recovery with Two-Step Authentication

You have the option to setup Two-Step Authentication on your account in order to increase the security of your account. Use of your mobile number for Two-Step Authentication allows you to recover your password by entering the code that was provided to your mobile phone into the SMS Account Recovery box. A new password will be requested of you at that point in time. Click on “Forgot my password?” to proceed. After that, you’ll be able to log into with your newly created password.

Account Recovery Form

The ability to setup Two-Step Authentication on your account provides an extra layer of protection. Use of your mobile number for Two-Step Authentication allows you to reset your password by entering the code that was provided to your mobile phone into the SMS Account Recovery box.

A new password will be requested of you at that point. Select “Forgot my password?” and follow the instructions. After that, you should be able to log into using your new password. ↑ The following are the contents of the table of contents

  • It is an alphanumeric code that is produced just for your payment and is known as a transaction ID. In the event that you paid for an upgrade on the site using a credit card, PayPal, or another means, you may obtain a transaction ID from your individual account statements, or by looking up a previous receipt that was issued to your email address
  • URL or key for activation: During the registration process, we provided an activation link to your email address, which you were needed to click in order to complete the process. Alternatively, if you got an email that had a confirmation button rather than a link, you may copy the activation URL by right-clicking on the button and selecting “Copy Link Address” (the wording may differ somewhat depending on your browser)
  • Codes for two-factor authentication: If you have two-step authentication enabled on your account, you may confirm ownership by providing a current code from your authenticator app.

You can include any other information that you think would be useful at the bottom of the form. Then selectRecover My Account from the drop-down menu. After receiving your submission, we will contact you to ask for more information if necessary. You will be able to reset your password and restore access to your account after we have received verification that you are the blog’s owner. ↑ Section I: Table of Contents

Recovery Email and SMS Number

You may change your account recovery options by going to the Account Recovery page in your Account Settings and entering an alternate email address and SMS number. Using the recovery email and SMS number will allow you to prove your identity if you do not have access to your primary contact information. ↑ Section I: Table of Contents

If Ownership Cannot be Established

If an email from the email address with which the blog was registered, a transaction ID, or the original activation link can’t be obtained, access to the account will be denied in order to protect the account’s confidentiality. As a result, we have put in place a strong policy to safeguard our users from third parties who may attempt to obtain access to other users’ accounts by utilizing our support system. In this situation, the following alternatives are open to the user:

  • If you have personal information on your blog, you may request that it be changed to private so that search engines and other users will not be able to access it. Unless the site has been switched to private but is still appearing in Google search results, you will need to wait until your results are no longer shown on the search engine results page. Using Google’s website removal request tool, you can request that a website be removed from their search engine results. You have the option of not seeing advertisements that are tailored to your interests based on your visits to sites in the network.

If you wish to get back into blogging, you may sign up for a new account by clicking on this link. Account Recovery for P2 If you are the owner or operator of aP2 and have a recovery request or query, please email [email protected] for assistance.

How to Manually Reset Your WordPress Admin Password

WordPress admin passwords are frequently forgotten, which may be quite inconvenient. You need access to your account, whether you’ve forgotten what it was or someone has hacked into it and changed the password. Typically, you may recover your password by clicking on the “forgot password” option on the login screen during your session. What happens, though, if the email address associated with the admin account is likewise changed? During this time period, you will be required to manually reset the WordPress admin password.

You will be gaining access to the site’s database, but don’t worry, everything will be OK on the site.

How to Reset the Admin Password in WordPress

PhpMyAdmin is a database management tool included with cPanel. It provides you with access to any database that is hosted on your web server, allowing you to maintain complete control over the information. As a result, you may change the WordPress admin password manually by resetting it from the database. But first, you’ll need to figure out how to get to it. Scroll down to the bottom of your cPanel and click on the “phpMyAdmin” button. It will be located in the “Databases” section of the website.

Step 2: Find Your Database

In the left-hand column, select the database for the website. In case you’re not sure which database to use, have a look at your website’s wp-config.php file.

Even if you only have a single website, you could only have a single database. Considering that I have numerous on my account, the list is always growing. This is why it’s critical that you’re altering the admin password for the right website when you’re doing so.

Step 3: Locate the wp_users File

From the main window, choose the “wp users” database table.

Step 4: Click on Edit

To edit the admin account, go to the Options column and click the “Edit” button. According to what you can see, I only have one account associated with this website. If there are several users, you must double-check that you are modifying the proper user account. Always double-check the “user nickname” or “user-email” fields to make sure you’re modifying the admin account instead of a guest account.

Step 5: Change Your Password

Using the drop-down menu in the use pass row, choose “MD5” in the Function column of the use pass row. In the text box to the right of MD5, type a new password to protect your account. Once your password has been updated, go to the bottom of the page by clicking “Go.” Now that your password has been updated, you’ll be able to access the site.

Method 2: Password Reset with Softaculous

Another option for resetting your password is to do it using Softaculous. It’s important to note that this option is only accessible to you if you installed WordPress using Softaculous in the first place, but even if you did, you’ll be glad to learn that it is by far the simplest method of manually resetting the WordPress admin password. Log into your cPanel and navigate to the Softaculous area, where you will see the WordPress installation option.

Step 2: Edit Your WordPress Install

You may now get a list of all of the WordPress installations associated with your account. Locate the account on which you want to reset the password and select the Edit option from the menu.

Step 3: Change the Admin Password

The installation options are located at the top of the page. You may safely disregard them. Scroll all the way down to the section under “Admin Account.” All of the fields will be empty, and they should remain empty until you specifically request that they be filled up. In this particular instance, we wish to make changes to the Admin Password field. You must, however, input the administrator’s username first. After all, you have the option of creating numerous admin accounts. Whatever you type in will serve as your new password.

At the bottom of the page, you’ll see a button that says “Save Installation Details.” Click on that button.

You might be interested:  How To Restore Wordpress Backup?

Congratulations, your password has been reset.

Use Strong Passwords

Using a strong password is really crucial, and it cannot be overstated in this context. The password for admin accounts is practically the only thing that keeps your website protected. Here are some suggestions to assist you in creating a secure password. First and foremost, avoid utilizing common words, your name, or the most popular of all, your date of birth in your writing. Because of the ease with which others can access things like social media, it is not safe to do this. These can typically be worked out if someone knows you well enough.

For example, even in the year 2020, the most often used password is still 123456.

Your password’s strength will be significantly increased as a result of this. Not to worry if you aren’t confident in your ability to create your own passwords; you may have a password generated for you using a password generator. Always use a strong password to protect your information.

Keep Your Site Secure

The security of a website is of the highest significance. Regardless of whether you have forgotten your password or if your account has been hacked, you should constantly keep an eye on the security of your information. While it may be possible to erase some of the harm caused by a hacker obtaining access to a website, you may be faced with a slew of issues in the aftermath. What are some of your favorite security plugins for WordPress to make advantage of? How many times have you misplaced a long and difficult password?

How to Reset your WordPress Password Tutorial – SiteGround Tutorials

This guide will walk you through the process of resetting your WordPress password.

How to reset a user password from your Site Tools

To get started, navigate to yourSite Tools. WordPressInstallManage: Now, locate the website for which you wish to change the password and navigate to the kebab menu adjacent to it, where you will find the option to Update Admin Password. When you click on theUsername drop-down field, a new pop-up window will emerge, allowing you to select one of the possible usernames in your WordPress installation. Then type in the desired new password for the user and clickConfirm to have it applied to the account.

That’s all there is to it; you may now log in using your new password.

How to reset a user password manually via phpMyAdmin

As an alternative to utilizing the WordPress section tool in your Site Tools, you may change the password for the chosen user directly in the application’s database, which will save you time and frustration. To do so, navigate to yourSite Tools. SiteMySQL phpMyAdminIt is possible to access phpMyAdmin. After that, select your WordPress database from the drop-down menu on the left. When in doubt, look for the following line in the wp-config.php file in the root folder of your WordPress installation: If you’re still not sure which one it is, check the wp-config.php file in the root folder of your WordPress installation for the following line: user wp743 is defined as: define(‘DB NAME,’ user wp743 ); Then, in the top menu, select SQL from the drop-down list.

‘user login’ is the same as “admin username”; Replace wp_ with the real table prefix for your WordPress, NEWPASSWORD with the desired password, and admin username with the actual WordPress username in the above query.

You may now access your account using your new password.

How to Reset your WordPress Admin Password Via FTP

Is it possible that you are attempting to enter your WordPress admin page and have realized that you have forgotten your password? Most of the time, you can quickly change your WordPress admin password by clicking on the “reset password” option on the login page. Occasionally, though, your WordPress site may be unable to send an email as a result of technical difficulties.

And if this occurs, you will require an additional method of resetting your password and gaining access to your administrative panel. There’s no need to get too worked up over it. In this post, we’ll walk you through the process.


  1. How to reset your WordPress password using FTP
  2. How to reset your WordPress password using PHPMYADMIN
  3. How to reset your WordPress password using phpMyAdmin
  4. The following are the steps to reset your WordPress password using the Emergency Password Reset Script: It’s simple: use the MySQL Command Line Command Prompt to reset your WordPress account password. Also included is information on how to reset your password using WP-CLI.

Any of the actions listed above should be successful for you. Simply choose the one that you are most comfortable with and move forward from there. Now, let’s go into the answers, starting with one of the most straightforward approaches.

How To Reset Your WordPress Admin Password via FTP

Using an FTP client, you may change the password on your WordPress installation. FileZilla will be used as an example in this section. For further information on how to use FTP, see this page. Starting with FileZilla, login to your FTP account by entering your host, username and password in the text boxes given, as well as the port number of your FTP server. To make it easier for you, the host is ‘,’ and the username and password are most likely the same as your control panel login information.

You can, however, contact yourWebHostand provider ask for the information if you do not already have it.

After you have put in the correct details, click on the ‘ Quickconnect ’ button.

After that, we’ll look for the directory that contains the WordPress theme that is now active on your website or blog. To get there, open the window on the right that is labeled’Remote Site ‘, scroll down until you locate the folder that contains your website (which is usually’public html ‘), then double-click on it to launch the website from there. Afterwards, in the’Filename’window, which is also on the right, scroll down until you reach’wp-contents’and double-click on that filename. Once it has been opened, double-click on the’Themes’folder to bring it up for viewing.

As a result, double-click on the theme that is now active.

If you have only recently installed FileZilla, you will also need to configure the text editor that you will be using to modify the php file.

As a result, move your pointer to the upper left corner of your screen and select the Edit option.

Head down toFile editingand click on it. In the ‘Default editor’ section, select ‘Use system’s default editor…’ and clickOK.

Now, returning to our ‘functions.php’ file, right-click on this file and selectView/Edit from the drop-down menu that appears on the right. This will open the text editor in your browser. A minor modification will be made to the code in this section. Copy and paste the following code at the top of the page, after the?php line: wp set password(‘your new password’, 1); / Set your new password. Substitute the real password you wish to use for your new password, and the number 1 represents the WordPress user ID for whom you are attempting to change the password.

  • You should save your modifications and then close the file when you’re finished.
  • Now, using the password you created before, log onto your WordPress dashboard.
  • Thank you for your assistance.
  • To delete the code we added, follow the identical procedures as previously to get access to and modify the file.

And, of course, after you’re through, save and submit the file. It is possible to prevent WordPress from resetting the password each and every time you attempt to access the admin panel by following these instructions.

How To Reset Your WordPress Admin Password Using PhpMyAdmin

Now, returning to our ‘functions.php’ file, right-click on this file and selectView/Edit from the drop-down menu that appears on the left. To access the text editor, click on the text editor button. A little modification to the code will be made here. Copy and paste the following code at the top of the page, after the?php line: php If you have a new password, you may set it with wp set password(‘your new new password’, 1). Substitute the real password you wish to use for your new password, and the number 1 represents the WordPress user ID for whom you want to change their password.

  1. You should save your modifications and then close the file after you’re finished.
  2. Then, using the password you created earlier, go into your WordPress dashboard.
  3. It is necessary to re-enter the ‘wp set password’ code into your’functions.php’file using your FTP client as a result.
  4. In addition to ensuring that the file is saved and uploaded when finished, The password will not be reset every time you attempt to get into the WordPress administration panel if you do it this way.

How To Reset Your WordPress Admin Password via Emergency Password Reset Script

If none of the alternatives listed above are suitable for your needs, you might resort to using the Emergency Password Reset Script. It is important to note that this is not a plugin, but rather a PHP script. It is essential that you understand the following before you may utilize it:

  • The script changes the administrator’s password and, in most cases, sends a confirmation email to the administrator.
  • It is still possible that the email will not be sent, but be assured that the password has been reset.
  • You must store the script in the root folder of your WordPress installation
  • Otherwise, it will not function.
  • Once you are finished with the script, you should remove it for security reasons.

Now that we have all of this information, let us go through how to make it. This script may be created using either FTP or the control panel provided by your web server. We will demonstrate how to accomplish this with cPanel. To begin, log into your cPanel and navigate to the’Files’section, where you will find the’File Manager’option. To access a folder containing your WordPress files, navigate to the’File Manager’page and click on the folder you want to open. The majority of the time, this will be’public html ‘.

A box will appear on the screen.

Once the file has been generated, right-click on it and choose ‘Edit’ from the drop-down menu.

Next, copy theEmergency Password Scriptand paste it into the emergency file.Now click ‘ Save Changes ’ on the right-hand pane of the page.

After you have created the file, open it in your browser (of course replace yourdomain with your actual site url). Now, in the text boxes, enter your Admin username and your new password, and then click on the ‘Update Options’ button. A notification will be displayed informing you that your password has been changed. An email with the password change information will be sent to the Administrator’s email address at that point in time.

Keep in mind that even if you do not receive an email, your password has been changed. To summarize, you must remove the’emergency.php’file from your server in order to prevent someone else from accessing it and changing your password on your behalf.

Reset WordPress Admin Password via MYSQL Command Line Interface

The MySQL CLI (Command Line Interface) on your host server may be used to reset your WordPresspassword as an alternative method. However, in order to follow along with this article, you must have shell access to your WordPress hosting server. In order to reset your password using MySQL, you must first log into your website using SSH.

How to Access your Website Via SSH

Alternatively, if you are using a Linux or Mac OS X operating system, you may simply type the SSH command into your terminal application. To begin, open a terminal and type or paste the code provided below. [email protected] -pPORT (ssh [email protected]) Make sure to change USER with the username and password you use to get into your cPanel or VPS. Then replace SERVER with the IP address of your computer. Finally, replace the PORT with the ssh port number of your host server in the last line of code. To access to your website while operating on the Windows platform, you will need an SSH client installed.

  • To begin, download and install PuTTY on your computer.
  • As seen below, in the PuTTY window, enter your IP address (or domain name) and your SSH port number in the text input fields provided in the PuTTY window.
  • Using this terminal, log in with your WebHost username and password information.
  • If you go to the Manage Shell menu link in cPanel, you should see the following information.

Using MySQL CLI to Reset Password in WordPress

To access the MySQL interface after you have successfully connected your website, put the command below into your browser’s address bar. p mysql -u root -p mysql Make certain that you replace’root’with the username for your database (if it is different). After that, press the enter key. You will be requested to enter the password for your database. Your database username and password may be found in the wp-configfile on your host server’s hard drive. This may be accomplished by logging into your WordPress site’s cPanel and then selecting File Manager.

After that, selectit by clicking onwp-config.

The next step is to connect to your website using the MySQL CLI using these credentials.

In the shell, enter the command shown below.

Replace ‘ your_database_name ’ with your websites’ database. Similarly, you can find the name of your database in the wp-config.php file as shown above.

Now, enter the command below to obtain a list of all tables containing user information. Tables should be displayed THINGS LIKE ‘percentage of users’; You should be able to see the wp users table shown on the terminal screen. Following that, we’ll construct a sql statement to query the database and retrieve the admin user’s information. To accomplish this, copy and paste the code below into the terminal. FROM wp users, SELECT ID, user login, and user pass FROM THEN WHERE user login = ‘your username’; AND Replace’your username’with the username you use to log into your WordPress dashboard.

Type the following command into the terminal to get your password reset immediately.

MySQL’s UPDATE command, as previously mentioned, is used to reset user passwords.

To verify that the password has been changed, enter the command below into your terminal.

WHERE user login = ‘your username’;Under theuserpasscolumn, the password stored should be different from the one that was used during the initial query. To quit the MySQL CLI, just typeexitthen press the enter key to confirm your exit.

Reset Password Through WP-CLI

Another method of resetting the password for your WordPress sites is to use the WP-CLI command line interface. However, in order to utilize the WP-CLI, you must login to your site via SSH access. In the preceding sections, we demonstrated how to connect to SSH via the terminal (for Linux and OSX users) and also via Putty (for Windows users). Following the successful connection of your site to an SSH terminal, you will need to browse to the directory containing your WordPress site. You may accomplish this by using the command’cd’followed by the name of the folder in question.

  • If your WordPress site is located in a different directory, just replace’public html’with the name of the folder containing your site’s files.
  • After you have navigated to your site directory, you will need to install WP-CLI in the terminal window that you have opened.
  • curl -O is an abbreviation for curl -O.
  • wp-cli.phar is the PHP command line interface.
  • wp-cli.phar user information update USERNAME -user pass= USERNAME “PASSWORD” USERNAME should be replaced with the admin user for your website.
  • Congratulations, you have successfully changed the password for one of your WordPress sites.


After successfully connecting into your WordPress dashboard using one of the methods indicated above, you should investigate why you were unable to reset your admin password using the link on the login page, as described above. This is frequently caused by an issue with your WordPress account’s ability to send emails. If this is the case, you should review our tutorial on how to resolve WordPress not sending email issues on your website. We also recommend that you save your password in a safe area where only you will be able to access it from time to time.

Articles that are recommended

  • How to resolve the’sorry, you are not permitted to visit this page’ error message
  • Can’t get into the WordPress Administration Dashboard? What to do to fix it
  • How to set a restriction on the number of login tries in WordPress

Background vector developed by GraphiqaStock – – and used with permission. Continue reading these useful articles:

Leave a Comment

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