Knowledgebase

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)

  1. Open your login page: https://example.com/wp-login.php (or /wp-admin).
  2. Click Lost your password? under the login form.
  3. Enter your username or the email address of your administrator account and click Get New Password.
  4. Open the email you receive and click the reset link.
  5. 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

  1. Log in to cPanel (see how to log in to cPanel).
  2. Find your database name: open File Manager, edit wp-config.php and note the value of DB_NAME and the $table_prefix (usually wp_, but it may be different).
  3. Open phpMyAdmin from the Databases section and select that database from the left sidebar.
  4. Open the wp_users table (with your prefix, for example abc_users).
  5. Find your administrator row and click Edit.
  6. In the user_pass row, choose MD5 from the Function dropdown, delete the existing value, and type your new password.
  7. Click Go at the bottom to save.
  8. Log in with the new password. WordPress will automatically convert the MD5 hash to its stronger hashing format after your first login.
Tip: Take a database export before editing anything in phpMyAdmin. Edit only the 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_NAME in wp-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.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • WordPress password, reset WordPress password, phpMyAdmin, wp_users, MD5, WP Toolkit, Softaculous, lost password, باسورد ووردبريس, نسيت كلمة المرور

Was this answer helpful?

0 Users Found This Useful