Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4862 pages

Help for owners

I'm locked out of my WordPress admin and the reset email never arrives

Short answer

If you are locked out of WordPress admin, start with the Lost your password link on the login page. WordPress's documentation says other routes exist when email isn't working, through phpMyAdmin, FTP, WP-CLI or an emergency reset script. All of those need hosting access, so use them yourself only if you are comfortable there, and check the user list once you are back in.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • My usual password stopped working on the WordPress login page.
  • I clicked Lost your password and the email never came.
  • A security plugin says I am blocked after too many attempts.
  • The admin email address belongs to a staff member who left.
  • I don't remember which username the admin account uses.

Why does this happen?

  1. The reset email can't get through

    WordPress calls the Lost your password link the easiest way to reset a password, and notes that you may need other steps when your email isn't working correctly. Many sites send mail straight from the web server, and those messages are often blocked or land in spam.

  2. The admin email points to a dead inbox

    The reset message goes to the address stored on the user account. If that is a former employee's mailbox or an old agency address, the link goes to someone who will never pass it on.

  3. A login protection plugin locked the address

    Security plugins block an IP address or a username after repeated failed logins. The lock usually lifts after a set time, and more attempts during it can extend the block.

  4. Someone else changed the password

    If nobody on your side changed it, treat a sudden password failure as a possible break-in until you have checked the users and recent changes.

What can I do about it today?

  1. Try the reset with the exact detailsUse Lost your password with the admin username or the exact email address on the account. Then search spam and promotions folders for the message.
  2. Wait out a plugin lockoutIf the screen mentions too many attempts, stop trying until the lockout period ends. Repeated tries can keep the block in place.
  3. Check that you can open your hosting panelSign in to your hosting account. phpMyAdmin, the file manager and FTP all start there, and they are the routes WordPress documents for a reset without email.
  4. Ask your host's supportAsk whether support can reset the admin password for you or help you reach phpMyAdmin safely, before you edit the database by hand.
  5. Write down what happenedNote when the password stopped working and anything unusual, such as unknown emails or changes on the site, in case it turns out to be a hack.

When should I bring someone in?

  • You think someone else changed the password or added an admin.
  • The admin email and the hosting account belong to someone who has left.
  • You have no access to the hosting panel or the database.

How do I handle it?

  1. Choose the least risky routeWith your hosting access I reset the password through WP-CLI or the user screen where possible, and only edit the database with a backup taken first.
  2. Clean up any temporary changesWordPress warns that the FTP method resets the password on every page load until the code is removed, and that the emergency script must be deleted afterwards. Neither is left behind.
  3. Check users and recent changesI review every administrator account, recent plugin and theme changes and modified files, and remove anything nobody can explain.
  4. Make the next reset workThe admin account gets a company-owned email address, site mail goes through a proper sending service, and admins get two-step login.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Can I reset a WordPress password without email?

Yes. WordPress's documentation lists methods through the MySQL command line, phpMyAdmin, FTP, WP-CLI and an emergency password reset script. Each one needs access to your hosting or server.

Was my WordPress site hacked?

If the password stopped working and nobody on your side changed it, treat it as possible. Check the list of administrators and recent changes once you are back in.

Will resetting the admin password break my website?

A password reset only changes the login. Editing the database or theme files by hand carries more risk, which is why a backup comes first.

Is the phpMyAdmin method safe for a non-technical owner?

WordPress itself warns that phpMyAdmin is used at your own risk and that it is not responsible for data loss. If you are unsure, ask your host or a developer.

Sources

For your developer: the technical fixes

Related help

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.