Locked out of WordPress, or just need to change the password on an admin account? There are five reliable ways to reset a WordPress admin password — from the one-click email link to database-level resets that work even when nothing else does. Start with Method 1 and move down the list; each method works in situations where the previous one fails.
Method 1: Reset Your Password via Email (Lost Password Link)
The fastest way to reset your WordPress password when you can't log in:
- Go to your login page (yoursite.com/wp-login.php) and click Lost your password?
- Enter your username or the email address on the admin account.
- WordPress sends a password reset link to that email — click it and choose a new password.
If the reset email never arrives, check spam first, then your site's ability to send email at all — many servers can't send mail without an SMTP plugin. If email is broken, use one of the methods below, then fix deliverability so future resets work.
Method 2: Change the Password from the WordPress Dashboard
Already logged in (or another administrator is)? Changing your WordPress password takes a minute:
- Go to Users → Profile (or Users → All Users → pick the admin user).
- Scroll to Account Management → Set New Password.
- WordPress generates a strong password — use it or type your own, then click Update Profile.
An administrator can reset the password for any user this way — handy when a team member is locked out and email reset isn't working for them.
Method 3: Reset the Password via phpMyAdmin (Database)
When you can't receive the reset email and no other admin exists, reset the password directly in the MySQL database using phpMyAdmin:
- Open phpMyAdmin from your hosting control panel (cPanel, hPanel, Plesk) and select your site's database.
- Open the wp_users table and click Edit on the admin user's row.
- In the user_pass field, paste your new password and select MD5 in the Function dropdown.
- Click Go — the new password works immediately (WordPress upgrades the MD5 hash to its stronger format on your next login).
Tip: your table prefix may differ (e.g. wp7a_users instead of wp_users). Always back up the database before editing it.
Method 4: Reset via WP-CLI (Command Line)
If you have SSH access, WP-CLI is the cleanest server-side reset. List users to find the right ID, then update the password:
wp user list
wp user update 1 --user_pass="your-new-strong-password"Replace 1 with the admin user's ID. This bypasses email entirely and takes effect instantly — the go-to method for developers and agencies managing many sites.
Method 5: Reset from cPanel / Softaculous
If your host installed WordPress through Softaculous, you can change the admin password without touching the database: open Softaculous in cPanel, find your WordPress installation, click Edit Details, and set a new Admin Password. Some hosts (Hostinger, SiteGround, Bluehost) also offer their own one-click password reset in the hosting panel — worth checking before editing the database by hand.
After the Reset: Lock the Door Properly
A password reset is a good moment to harden the login itself. Use a unique, generated password (a password manager beats memorable phrases), enable two-factor authentication if your security plugin offers it, and consider changing your WordPress login URL so bots can't hammer wp-login.php. If you manage client sites, role-based login redirects also keep users away from screens they don't need. WP Adminify's security module covers both without extra plugins.
Frequently Asked Questions
How do I reset my WordPress admin password without email access?
Use phpMyAdmin (edit the user_pass field in wp_users with the MD5 function), WP-CLI (wp user update), or Softaculous in cPanel. All three work with no email involved.
Why is my WordPress password reset email not arriving?
Usually the server can't send mail. Check spam first, then install an SMTP plugin so WordPress sends through a real mail service. Until that's fixed, reset via the database or WP-CLI instead.
Can I change another user's password as an administrator?
Yes — go to Users → All Users, edit the user, and use Set New Password under Account Management. The change applies immediately and logs out that user's active sessions if you also click "Log Out Everywhere".
Is editing the database to reset a password safe?
Yes, if you change only the user_pass field with the MD5 function and back up the database first. WordPress automatically re-hashes the password with its stronger algorithm the next time you log in.



