How to Reset Your WordPress Admin Password
Forgot your WordPress password, or the reset email never arrives? Don't worry, you can get back into your dashboard in a few minutes. This guide explains how to reset your WordPress admin password using four methods: the "Lost your password?" email, phpMyAdmin in cPanel, WP Toolkit or Softaculous (if available in your cPanel), and creating a new administrator user when you cannot access the old one.
Method 1: Use "Lost your password?" (easiest)
- Open your login page:
https://example.com/wp-login.php(or/wp-admin). - Click Lost your password? under the login form.
- Enter your username or the email address of your administrator account and click Get New Password.
- Open the email you receive and click the reset link.
- Enter a new strong password (or keep the generated one) and click Save Password.
If the email does not arrive, check the spam folder. If you no longer have access to that email address, or your site cannot send emails, use one of the methods below.
Method 2: Reset the password from phpMyAdmin
- Log in to cPanel (see how to log in to cPanel).
- Find your database name: open File Manager, edit
wp-config.phpand note the value ofDB_NAMEand the$table_prefix(usuallywp_, but it may be different). - Open phpMyAdmin from the Databases section and select that database from the left sidebar.
- Open the
wp_userstable (with your prefix, for exampleabc_users). - Find your administrator row and click Edit.
- In the
user_passrow, choose MD5 from the Function dropdown, delete the existing value, and type your new password. - Click Go at the bottom to save.
- Log in with the new password. WordPress will automatically convert the MD5 hash to its stronger hashing format after your first login.
user_pass field and do not change other values. See how to back up and restore your website.Method 3: Use WP Toolkit or Softaculous (if available)
If WordPress was installed using a cPanel installer, you may be able to reset the password without touching the database:
- WP Toolkit: open WP Toolkit in cPanel, find your installation, and use the Log in button to enter the dashboard directly, or open the installation's settings to change the administrator password.
- Softaculous: open Softaculous Apps Installer, go to the list of installations (or WordPress Manager), click the edit (pencil) icon next to your site, and update the admin password in the admin account section, then save.
The exact buttons depend on the tool version available on your account. If you do not see either tool, use Method 2.
Method 4: Create a new administrator user
If the old admin account is broken, deleted or compromised, you can create a new administrator from phpMyAdmin. Open the database, click the SQL tab and run the following (replace the prefix wp_, username, password and email with your own):
INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_registered, user_status, display_name)
VALUES ('newadmin', MD5('YourStrongPassword'), 'newadmin', 'you@example.com', NOW(), 0, 'newadmin');
SET @uid = LAST_INSERT_ID();
INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES
(@uid, 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}'),
(@uid, 'wp_user_level', '10');Note: if your table prefix is not wp_, change it in the table names and in the meta keys (for example abc_capabilities and abc_user_level). After logging in, go to Users and review the list; delete any user you do not recognize.
If you have SSH access with WP-CLI, you can also run wp user update USERNAME --user_pass="NewPassword" from the site folder.
Common problems
- The reset email never arrives: your site may not be sending emails correctly. Configure SMTP with a plugin, or use the phpMyAdmin method.
- "The password you entered is incorrect" after phpMyAdmin edit: make sure you selected MD5 in the Function column and edited the right user and the right database (check
DB_NAMEinwp-config.php). - Login page keeps reloading: clear browser cookies and cache, and purge your cache plugin. Also check that WordPress Address and Site Address are correct.
- You see unknown admin users: your site may be compromised. Change all passwords and read our troubleshooting guides or contact support for a scan.
Frequently asked questions
Is MD5 safe for storing passwords?
MD5 is only used temporarily. When you log in, WordPress replaces it automatically with its modern secure hash.
Can I find out my old password?
No. WordPress stores passwords as one-way hashes, so the old password cannot be read. You can only set a new one.
How do I change my password if I can still log in?
Go to Users > Profile, scroll to Account Management, click Set New Password, then Update Profile.
Will resetting the password affect my website content?
No. Only the login password changes; your pages, posts and products stay the same.