How to Reset WordPress Admin Password (3 Easy Methods)

Forgetting your WordPress admin password can feel like being locked out of your own house. It’s a common issue, especially if you haven’t logged in for a while or manage multiple websites. The good news is that WordPress gives you several safe and reliable ways to reset your admin password—no hacking or advanced skills required.

This guide walks you through three easy methods to reset your WordPress admin password, from the simplest option to more technical alternatives. Each method is safe, legitimate, and commonly used by WordPress site owners.


When Should You Reset Your WordPress Admin Password?

You may need to reset your password if:

  • You forgot your WordPress admin login details

  • Your password reset email isn’t arriving

  • You suspect your site has been compromised

  • An admin user left your team without sharing credentials

  • You’re restoring control after a security issue

No matter the reason, the methods below will help you regain access.


Method 1: Reset Password Using “Lost Your Password” (Easiest)

This is the fastest and most beginner-friendly method, as long as you still have access to the admin email address.

Step-by-Step Instructions

  1. Go to your WordPress login page

    • Usually: yourwebsite.com/wp-login.php

  2. Click “Lost your password?”

  3. Enter:

    • Your admin username or

    • Your admin email address

  4. Click Get New Password

  5. Check your email inbox (and spam folder)

  6. Click the password reset link and set a new password

  7. Log in using your new password

Common Issues and Fixes

  • No email received: Check spam or verify your site can send emails

  • Email not working: Use Method 2 or 3 below

Best For

  • Beginners

  • Users with working email access


Method 2: Reset Admin Password via cPanel (phpMyAdmin)

If you can’t access your admin email, you can reset the password directly from your hosting control panel.

What You’ll Need

  • Access to your hosting account

  • cPanel or similar dashboard

Step-by-Step Instructions

  1. Log in to your hosting account

  2. Open cPanel

  3. Click phpMyAdmin

  4. Select your WordPress database

    • If unsure, check the database name in wp-config.php

  5. Click the users table

    • Usually named wp_users (prefix may vary)

  6. Find your admin username and click Edit

  7. Locate the user_pass field

  8. In the function dropdown, select MD5

  9. Enter your new password in the value field

  10. Click Go or Save

Important Notes

  • WordPress will automatically re-encrypt the password on your next login

  • Use a strong password (letters, numbers, symbols)

Best For

  • Users without email access

  • Website owners comfortable with basic hosting tools


Method 3: Reset Password via FTP (functions.php Method)

This method is useful when you cannot access WordPress admin or phpMyAdmin.

What You’ll Need

  • FTP access (FileZilla or hosting file manager)

Step-by-Step Instructions

  1. Connect to your website via FTP

  2. Go to:

    /wp-content/themes/your-active-theme/
  3. Open the functions.php file

  4. Add this code at the bottom:

    wp_set_password('NewStrongPassword123!', 1);
  5. Save the file and upload it back to the server

  6. Log in using the new password

  7. Immediately remove the code from functions.php

Important Warning

Leaving this code in place can be a security risk. Remove it after logging in.

Best For

  • Advanced users

  • Emergency access recovery


Which Method Should You Use?

Situation Best Method
Forgot password, email works Method 1
Email not working Method 2
Locked out completely Method 3

After Resetting Your Password: Security Tips

Once you regain access, take a few minutes to secure your site:

  • Change passwords for all admin users

  • Enable two-factor authentication (2FA)

  • Remove unused admin accounts

  • Install a security plugin (Wordfence, iThemes Security, etc.)

  • Limit login attempts

  • Update WordPress, themes, and plugins

These steps reduce the chance of future lockouts or attacks.


FAQ

Will resetting my admin password affect my website content?

No. Resetting your password does not delete posts, pages, or settings.

Is resetting via phpMyAdmin safe?

Yes, as long as you edit only the correct user and database fields.

What if I don’t know which database my site uses?

Check the wp-config.php file for the database name.

Can I reset another admin user’s password?

Yes, if you have database or admin access.

How often should I change my WordPress admin password?

Every 3–6 months, or immediately after any security concern.


Final Thoughts

Getting locked out of your WordPress admin dashboard can be frustrating, but it’s rarely permanent. Whether you prefer the email reset, cPanel method, or FTP solution, WordPress provides reliable ways to restore access safely.

Once you’re back in, take a moment to strengthen your security. A strong password today can save you hours of stress later.

Be the first to comment

Leave a Reply

Your email address will not be published.


*