How to Reset Your WordPress Password When the Reset Email Doesn’t Arrive
- A. MounesiAuthor
- Release Date
- 5 minutesReading time
- 4Views
- A. Mounesi
- Published:
- 5 min read
- 4 views
You want to publish a new post, but you can’t remember your WordPress password. You click “Lost your password?” and wait for the email; ten minutes pass and nothing arrives. Maybe the account email is an old address you no longer use, or maybe the site’s email sending was never set up properly. Don’t worry: as long as you have access to your hosting, a WordPress password can always be recovered.
In this guide you’ll reset your WordPress password from the simplest way to the hosting-level ones: the reset link, help from another admin, Softaculous in cPanel, phpMyAdmin and WP-CLI, and finally how to keep it from happening again.
Short answer: if the reset email doesn’t arrive, check your Spam folder first. If you have cPanel access, the simplest way is Softaculous: in the installations list, click the pencil icon next to the site and set a new password under Admin Account. The way that always works is phpMyAdmin: change the user_pass column in the wp_users table with the MD5 function; WordPress re-saves the password with its own secure method at your first login.
1. Try the reset link properly
Open your site’s login address, usually example.com/wp-login.php. Click “Lost your password?”, enter the account’s username or email and click “Get New Password”. Check your inbox and Spam folder, and if several emails arrived, open only the link from the latest request; the earlier links no longer work.
If no email arrives, either the account email is an old address or the site can’t send email. In both cases, move on to the next ways.
2. If you’re still logged in or have another admin
If you’re still logged in to the dashboard on your phone or another browser, go to Users → Profile, click “Set New Password”, enter the new password and click “Update Profile”. If a colleague has the Administrator role, they can edit your account under Users → All Users and save the new password with “Update User”.
3. Change the password with Softaculous in cPanel
If you installed WordPress with Softaculous, you can change the admin password right there. If you don’t know your cPanel address, see How to Log In to cPanel.
- In cPanel, open Softaculous Apps Installer and go to All Installations.
- Click the pencil icon (Edit Details) next to the site.
- Under Admin Account, enter the admin username and the new password, then click Save Installation Details.
4. Reset the WordPress password in phpMyAdmin
This way always works, even if you installed WordPress by hand. Back up the database before you start.
- Find the database name and table prefix in wp-config.php; DB_NAME is the database and $table_prefix is usually wp_.
- In cPanel, open phpMyAdmin, select the database in the left column and click the wp_users table (with your prefix).
- Click Edit on your account’s row.
- On the user_pass row, choose MD5 in the Function column, type the new password in Value and click Go.
MD5 on its own isn’t secure, but don’t worry: at your first login, WordPress re-saves the password with its own secure method. If phpMyAdmin is new to you, also see exporting and importing a database with phpMyAdmin.
5. Change the password with WP-CLI
If you have cPanel’s Terminal or SSH access, list the users in the WordPress folder first, then change that user’s password:
cd ~/public_html
wp user list --fields=ID,user_login,roles
wp user update 1 --prompt=user_passReplace 1 with your account’s ID from the second command’s output. The –prompt option asks for the password separately, so it isn’t saved in your command history. A Success message means the password has been changed.
Once you’re back in, keep it from happening again
- Under Users → Profile, make sure the account email is an address you can reach.
- If the reset email never arrived, fix WordPress email sending; setting up SMTP with WP Mail SMTP does exactly that.
- Keep the password in a password manager so you don’t forget it again.
- If you hadn’t forgotten the password and it changed by itself, the site may have been hacked; change every admin’s password and go through the WordPress security checklist.
FAQ
I’ve forgotten my username too. What now?
In phpMyAdmin, the user_login column of the same wp_users table shows the usernames, and wp user list tells you the same. On the login page you can also enter the account email instead of the username.
The reset link says it’s invalid. Why?
Either the link is an old one and you sent a newer request after it, or it has expired. Send a new request and open only the link in the latest email.
WordPress hosting at HiData
On HiData’s professional cPanel hosting, Softaculous, phpMyAdmin and Terminal are all in your cPanel, and with any of them you’re back in your site within minutes. If you get stuck, write your domain and username in a ticket, never the password; our 24/7 support has your back!


