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
-
Go to your WordPress login page
-
Usually:
yourwebsite.com/wp-login.php
-
-
Click “Lost your password?”
-
Enter:
-
Your admin username or
-
Your admin email address
-
-
Click Get New Password
-
Check your email inbox (and spam folder)
-
Click the password reset link and set a new password
-
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
-
Log in to your hosting account
-
Open cPanel
-
Click phpMyAdmin
-
Select your WordPress database
-
If unsure, check the database name in
wp-config.php
-
-
Click the users table
-
Usually named
wp_users(prefix may vary)
-
-
Find your admin username and click Edit
-
Locate the user_pass field
-
In the function dropdown, select MD5
-
Enter your new password in the value field
-
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
-
Connect to your website via FTP
-
Go to:
-
Open the
functions.phpfile -
Add this code at the bottom:
-
Save the file and upload it back to the server
-
Log in using the new password
-
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.
Leave a Reply