Account access

How to reset a WordPress admin password

To reset a WordPress admin password, start with the lost-password link on your site's login screen. If the email does not arrive, the next method depends on whether another administrator or your hosting account is still accessible.

Time: 10-30 minutes Level: Intermediate
Neil McNaught, founder of BugShield and WordPress author
Written by
Written by
Updated
Updated

Recover your existing WordPress account

Losing dashboard access does not mean you need to reinstall the site or create a replacement account. First establish which recovery route you still control: your profile email, another administrator or the hosting account. That choice keeps the reset focused on your existing user and avoids unnecessary changes to the site.

Choose the method for the access you still have

Your WordPress login is separate from your hosting login and your WordPress.org account. Check the address bar before entering a password: it should show your own website and HTTPS. A security plugin can change the usual login address; use your saved address if that feature is enabled.

Use the email method first. The administrator and database methods below are alternatives if that fails, not extra steps to complete afterwards. Reset only an account you own or have permission to administer.

1. Request and use the password reset email

  1. Open your site's login screen. For a standard installation, add /wp-login.php to the site's address, then select Lost your password?
  2. Enter the username or email address belonging to your WordPress user profile. This can differ from the site's general contact address. Select Get New Password.
  3. Check that inbox and its spam folder. Open the newest reset message and follow its link. If the link has expired, request a fresh one and use that message only.
  4. Accept the generated strong password or create a unique password in your password manager. Save it before selecting Save Password or Reset Password, depending on your screen.
  5. Return to the login page and sign in. If your password manager fills the previous password, replace it with the new saved value.

2. Ask another administrator if email recovery fails

An existing administrator can open Users > All Users, select your username and check the email address in your profile. If you can receive mail at that address, they can use Send Reset Link under Account Management.

If site email is broken, they can use Set New Password, save a unique temporary password and select Update User. Have them share it through a secure password-sharing method, then replace it yourself in Users > Profile after signing in. They do not need to create a second administrator account.

When nobody else has administrator access, ask your host whether its WordPress management screen includes account recovery. Prove account ownership through the host's normal support process. Do not send your current password to support.

WordPress Users menu with All Users and Profile entries
In this earlier WordPress interface, All Users opens the accounts an administrator can review. Profile opens the signed-in person's own details; use the correct account when resetting a password. Credit: WordPress Training Team / Learn WordPress, CC BY-SA 4.0.

3. Use phpMyAdmin only when the simpler routes are unavailable

phpMyAdmin is your host's database editor. A database holds your site's saved content and account records. Before changing it, export a database backup. If you cannot identify the correct database or user, stop and ask the host to perform this reset.

  1. In the hosting panel, open the site's File Manager and view wp-config.php beside wp-admin and wp-content. Note the value of DB_NAME and the $table_prefix value without changing them or sharing the file.
  2. Open phpMyAdmin from the hosting panel and select that database. Find the table ending in users with the matching prefix, such as wp_users.
  3. Select Browse. Match both user_login and user_email to your account, then select Edit for that row. Do not assume user number 1 belongs to you.
  4. On the user_pass row only, select MD5 in the Function column and replace the Value with a unique temporary password you have saved privately. Leave every other field unchanged.
  5. Select Go to save and sign in through WordPress. WordPress accepts this temporary legacy hash and replaces it with its current password format after successful authentication.
  6. Open Users > Profile > Account Management, set a fresh final password and select Update Profile. Sign out of phpMyAdmin when finished.

4. Check the result and investigate unexpected changes

A successful reset lets you reach the dashboard with the intended username and password. If you return to the login screen without a password error, follow the login redirect-loop guide. A lockout notice or two-factor prompt needs the security plugin's recovery process; another password reset does not remove those checks.

Check your profile email and review administrator accounts. If somebody changed them without permission, treat that as a security incident and ask for a site review. Once access is stable, enable two-factor authentication and store its recovery codes separately from your phone.

Official reference

WordPress documents the supported password recovery methods, including its phpMyAdmin fallback. Its login security handbook explains how legacy password hashes are upgraded. Screen labels vary between WordPress versions and security plugins.

Get help with the next step

If you cannot identify your account or the reset still leaves you locked out, ask BugShield to help recover access. Tell us which login screen or error you see and which recovery methods you have tried; keep passwords out of your message.

Questions answered

How to reset a WordPress admin password FAQs

Why has the password reset email not arrived?

Check the profile email address and spam folder first. The site can also fail to send mail or have its messages rejected. Another administrator or your host can recover access while you investigate delivery.

Does changing my hosting password reset WordPress?

No. Hosting and WordPress use separate accounts unless your provider explicitly connects them through its management tools. Reset the account on the screen you are trying to access.

Is MD5 the normal WordPress password format?

No. It is a compatibility fallback for this database recovery method. WordPress replaces the legacy hash after a successful login. Use the normal profile screen for subsequent password changes.

Will a password reset bypass two-factor authentication?

No. Use a saved recovery code or the two-factor plugin's documented recovery procedure. Your host can help establish access if neither the authenticator nor recovery codes are available.

Should I add password-reset PHP to my theme?

Use email, an existing administrator or hosting recovery instead. A forgotten reset snippet can keep changing a password or expose an account recovery route to other visitors.

Need a hand with your WordPress site?

Tell us what happened and where you got stuck. A BugShield developer can help you work out the next step and confirm a price for the fix.

Explore help with this issue

Accessibility settings

Adjust how this site looks and moves. Your choices are saved in this browser.