How to Reset WordPress Password? 5 Methods You Can Use

by FaizAlias | Last updated Aug 3, 2026 | Published on Aug 3, 2026 | WordPress & Blogging, How To

If you cannot log in to your WordPress website because you forgot your password, there is no need to panic. Losing access to your administrator account is one of the most common issues faced by WordPress users, whether they are beginners, bloggers, business owners, or web developers. Fortunately, WordPress provides several reliable ways to recover access to your account without reinstalling the website or losing your content.

Learning how to reset WordPress password is an essential skill for every website owner. Password-related issues can happen for many reasons, including forgotten credentials, expired passwords, browser autofill errors, database migrations, website hacks, or accidental account changes. Understanding multiple recovery methods ensures that you always have a backup solution available.

In this guide, you will learn five proven methods to reset your WordPress password. Each method is suitable for different situations, allowing you to choose the one that best matches your circumstances.

How to Reset WordPress Password? 5 Methods You Can Use

Reset WordPress Password
How to Reset WordPress Password? 5 Methods You Can Use

Why You May Need to Reset Your WordPress Password

There are many situations where resetting your password becomes necessary. Some are caused by simple human error, while others are related to website security or technical problems.

Common reasons include:

  • You forgot your administrator password.
  • Your website was compromised by hackers.
  • Someone changed your login credentials.
  • The password manager no longer has your saved password.
  • Browser autofill keeps entering the wrong password.
  • You inherited a website from another developer.
  • Your hosting company restored an older website backup.
  • You want to improve website security by creating a stronger password.

Regardless of the reason, WordPress offers several recovery methods that do not require reinstalling your website.

Method 1: Reset WordPress Password Using the Login Page

This is the easiest and most recommended method for most users.

The WordPress login page includes a built-in password recovery feature that allows users to reset their password through their registered email address. If you still have access to the email associated with your administrator account, this method usually takes only a few minutes.

Steps

  1. Open your login page.
https://yourdomain.com/wp-login.php
  1. Click the "Lost your password?" link.
  2. Enter your:
  • Username
  • Email address
  1. Click "Get New Password."
  2. Check your email inbox.
  3. Open the password reset email.
  4. Click the reset link.
  5. Enter a new secure password.
  6. Save the new password.
  7. Log in using your new credentials.

Advantages

AdvantageExplanation
FastTakes only a few minutes.
SafeUses WordPress' built-in recovery system.
Beginner-friendlyNo technical knowledge required.
No hosting access neededEverything is completed through WordPress.

Limitations

This method will not work if:

  • You cannot access your email.
  • Your website cannot send emails.
  • The email address is outdated.
  • SMTP is not configured correctly.

Method 2: Reset WordPress Password from the WordPress Dashboard

If you are still logged into WordPress on another browser or device, you can change your password without using the recovery email.

Steps

  1. Log in to WordPress.
  2. Navigate to:
Users → Profile
  1. Scroll down to the "Account Management" section.
  2. Click "Set New Password."
  3. WordPress will generate a strong password automatically.
  4. You may:
  • Use the generated password
  • Create your own strong password
  1. Scroll down.
  2. Click "Update Profile."

Your new password becomes active immediately.

Best Practices

Create a password that includes:

  • Uppercase letters
  • Lowercase letters
  • Numbers
  • Special symbols
  • At least 16 characters

Avoid using:

  • Birthdays
  • Names
  • Phone numbers
  • Dictionary words

Method 3: Reset WordPress Password Using phpMyAdmin

If you cannot access either your email or your WordPress dashboard, you can reset the password directly inside your website database.

This method requires access to your hosting control panel.

Step 1

Log in to your hosting account.

Examples include:

  • cPanel
  • Plesk
  • DirectAdmin

Step 2

Open:

phpMyAdmin

Step 3

Select your WordPress database.

Step 4

Open the table:

wp_users

Some websites may use a different prefix, such as:

abc_users
site_users

Step 5

Locate your administrator account.

Step 6

Click "Edit."

Step 7

Find the field:

user_pass

Step 8

Replace the existing value.

Before saving, choose:

MD5

from the Function dropdown.

Enter your new password.

Example:

MySecurePassword2026!

Step 9

Click:

Go

Your password has now been updated.

Why MD5?

Older versions of WordPress stored passwords using MD5 hashing. Modern WordPress uses much stronger password hashing algorithms. However, if you manually update the password using MD5, WordPress automatically converts it to its current secure hashing method after your first successful login.

Advantages

AdvantageExplanation
Works without emailUseful if email recovery fails.
No WordPress access requiredEverything is done through the database.
FastTakes only a few minutes.

Disadvantages

DisadvantageExplanation
Requires hosting accessYou need access to your hosting control panel.
TechnicalBeginners should proceed carefully.

Method 4: Reset WordPress Password Using WP-CLI

WP-CLI is the official command-line interface for WordPress.

This method is intended for developers, system administrators, and advanced users who have SSH access to their server.

Check Existing Users

Run:

wp user list

You may see:

ID   user_login
1    admin
2    editor

Reset Password

Run:

wp user update admin --user_pass="NewStrongPassword123!"

Replace:

admin

with your own username.

Once completed, log in using your new password.

Advantages

AdvantageExplanation
Extremely fastPassword can be reset in seconds.
SecureNo database editing required.
Ideal for developersExcellent for server administration.

Disadvantages

DisadvantageExplanation
Requires SSHNot available on all hosting plans.
TechnicalCommand-line knowledge is required.

Method 5: Reset WordPress Password Using FTP

If your login page is broken or password recovery emails are not working, you can temporarily reset your password using FTP.

This method involves editing your website files.

Step 1

Connect using:

  • FileZilla
  • WinSCP
  • Cyberduck

Step 2

Navigate to:

public_html/

Locate:

functions.php

inside your active theme.

Step 3

Temporarily add:

wp_set_password('NewPassword123!',1);

The number:

1

represents the administrator user ID.

Step 4

Save the file.

Step 5

Visit your website.

The password is automatically updated.

Step 6

Immediately remove the code from your functions.php file.

Leaving the code inside the file will continue resetting the password every time WordPress loads, which can create unnecessary security and maintenance issues.

Advantages

AdvantageExplanation
Works without emailUseful when recovery emails fail.
Useful for broken login systemsCan bypass some login-related issues.

Disadvantages

DisadvantageExplanation
Temporary modificationRequires editing theme files.
Easy to forgetThe code must be removed immediately after use.

Comparison of All Password Reset Methods

MethodBeginner FriendlyEmail RequiredHosting AccessTechnical Level
Lost Password LinkYesYesNoEasy
WordPress DashboardYesNoNoEasy
phpMyAdminModerateNoYesMedium
WP-CLINoNoServer AccessAdvanced
FTPModerateNoYesMedium

Tips for Creating a Strong WordPress Password

A strong password significantly reduces the risk of unauthorized access. Cybercriminals frequently use automated tools that attempt thousands of password combinations every minute. Weak passwords can often be guessed in a matter of seconds, especially if they contain common words or predictable patterns.

To improve your website security:

  • Use at least 16 characters whenever possible.
  • Combine uppercase and lowercase letters.
  • Include numbers and special characters.
  • Avoid using names, birthdays, or dictionary words.
  • Never reuse passwords across multiple websites.
  • Store passwords in a trusted password manager.
  • Enable two-factor authentication (2FA) for an additional layer of protection.
  • Update administrator passwords regularly, especially after team changes or security incidents.

A strong password, combined with good security practices, provides one of the most effective defenses against unauthorized access.

Common Password Reset Problems

Even though resetting a password is usually straightforward, some users may encounter unexpected issues during the process.

ProblemPossible CauseSolution
Password reset email never arrivesEmail delivery problem or spam filteringCheck spam folder, verify the registered email address, or configure SMTP on your WordPress website.
Reset link has expiredPassword reset links are time-sensitiveRequest a new password reset email and use the latest link immediately.
Invalid username or emailIncorrect account information enteredDouble-check the username or email address associated with the administrator account.
Cannot access hosting accountLost hosting credentialsContact your hosting provider to recover access before attempting database or FTP methods.
Login still fails after resettingBrowser cache, cookies, or incorrect passwordClear your browser cache, remove stored cookies, and carefully re-enter the new password.
Website displays errors after editing filesIncorrect changes made to theme filesRestore the original file from a backup or remove the temporary password reset code.

Identifying the root cause of the problem can help you choose the most appropriate recovery method without risking unnecessary downtime.

Alternative Way (Just for Emergency)

Step 1: Log in to cPanel and go to the root of your WordPress installation (the same directory that contains wp-config.php).

Step 2: Create a new file named emergency.php. Then copy all the code below into emergency.php. Click Save File.

Step 3: In your browser, open http://example.com/emergency.php

Step 4: As instructed, enter the administrator username (usually admin) and the new password, then click Update Options. A message is displayed noting the changed password. An email is sent to the blog administrator with the changed password information.

Step 5: For security reasons, extremely important to delete emergency.php from your server when you are done.

How to Prevent Future Password Problems

Preventing password issues is often easier than recovering from them. By following a few simple maintenance practices, you can reduce the chances of being locked out of your WordPress website.

Some recommended habits include:

  • Keep your administrator email address up to date.
  • Configure SMTP so password recovery emails are delivered reliably.
  • Save credentials in a reputable password manager instead of relying on browser autofill.
  • Enable two-factor authentication to protect administrator accounts.
  • Limit the number of administrator users to only those who truly need full access.
  • Remove inactive user accounts that are no longer required.
  • Perform regular website backups so you can recover quickly from unexpected issues.
  • Monitor login activity and investigate repeated failed login attempts, which may indicate brute-force attacks.

Implementing these practices strengthens your overall website security while making password recovery much easier if you ever need it.

Conclusion

Knowing how to reset WordPress password is an essential part of managing any WordPress website. Whether you simply forgot your login credentials or need to recover access after a security incident, WordPress offers multiple recovery methods to suit different situations and skill levels.

For most users, the built-in "Lost your password?" feature remains the quickest and safest option. If that method is unavailable, alternatives such as the WordPress dashboard, phpMyAdmin, WP-CLI, and FTP provide reliable ways to regain access. Each approach has its own advantages, so understanding all five methods ensures that you are prepared regardless of the circumstances.

Beyond recovering access, it is equally important to adopt good password management habits. Using strong, unique passwords, enabling two-factor authentication, maintaining accurate account information, and keeping regular backups will greatly reduce the likelihood of future login problems. By combining these best practices with the recovery techniques outlined in this guide, you can keep your WordPress website secure and accessible whenever you need it.

Frequently Asked Questions (FAQs)

How do I reset my WordPress password if I forgot it?

The easiest way to reset your WordPress password is by clicking the "Lost your password?" link on the WordPress login page. Enter your username or registered email address, and WordPress will send you a password reset link. Once you create a new password, you can log in immediately.

Why am I not receiving the WordPress password reset email?

There are several possible reasons why the email may not arrive. It could be filtered into your spam or junk folder, your website may not be configured to send emails correctly, or the registered email address may be incorrect. Configuring an SMTP plugin often resolves email delivery issues.

Can I reset my WordPress password without email access?

Yes. If you no longer have access to your registered email address, you can reset your password using phpMyAdmin, WP-CLI, or by temporarily editing your website files through FTP. These methods require access to your hosting account or server.

Is it safe to reset a WordPress password using phpMyAdmin?

Yes, it is safe when done correctly. You should only access phpMyAdmin through your hosting control panel and make changes carefully. After logging in with the newly created password, WordPress will automatically update the password using its modern hashing system.

What is WP-CLI, and who should use it?

WP-CLI is the official command-line interface for WordPress. It allows users to manage WordPress websites using terminal commands. This method is best suited for developers, server administrators, and advanced users who have SSH access to their hosting environment.

Can I reset another user's password as an administrator?

Yes. If you have administrator privileges, you can reset the password of any user by navigating to Users in the WordPress dashboard, selecting the user account, generating a new password, and saving the changes.

Will resetting my WordPress password delete my posts or website data?

No. Resetting your password only changes your login credentials. Your posts, pages, plugins, themes, media files, and website settings remain unchanged.

What should I do if my WordPress login page is not working?

If your login page is inaccessible or displaying errors, you can reset your password through phpMyAdmin, WP-CLI, or FTP. You should also investigate whether the issue is caused by a plugin conflict, theme error, or server configuration problem.

How can I create a strong WordPress password?

A strong WordPress password should contain at least 16 characters and include uppercase letters, lowercase letters, numbers, and special characters. Avoid using personal information, common words, or passwords that you use on other websites.

How can I prevent password problems in the future?

You can reduce the risk of future login issues by using a password manager, enabling two-factor authentication (2FA), keeping your administrator email address up to date, configuring SMTP for reliable email delivery, and regularly updating your passwords. These practices improve both account security and recovery options if you ever lose access again.

References

  1. How to Change Password for WordPress Safely and Easily - cloudpanel.io
  2. Reset WordPress Admin Password - support.exabytes.com.my

Category

E

How to

E

Pets & Animals

E

Divi Theme Tutorial

E

Home & Garden

E

SEO & Performance

E

Compare & Review

E

Info & Fact

E

WordPress & Blogging

E

View All Categories

Arbor Design

895 South Randall Road, Chicago

Arbor & Landscaping

4999 Old Orchard Center, Chicago

Let's start work together

Pin It on Pinterest