Guides › WordPress › Security & hacks

Locked Out of WordPress Admin: Reset Your Password Without Email

Forgot your password and the reset email never arrives? Reset it directly in the database with phpMyAdmin, in a few clicks.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Security and hacking

Try the normal reset first

On the login page, click Lost your password? and enter your username or email. Check your spam folder. If the email never arrives, your site may not be sending email. See our email guide.

Reset it in the database (phpMyAdmin)

  1. In your hosting panel, open phpMyAdmin for your site's database.
  2. Open the table wp_users. Your prefix may differ, for example abc_users.
  3. Click Edit next to your user.
  4. In the user_pass row, open the Function dropdown and choose MD5.
  5. In the Value box, type your new password.
  6. Click Go to save.

Log in with the new password. WordPress accepts this format and upgrades it to its stronger format at your first login.

Another way: add a new admin

If you cannot recall which user you are, ask your host whether they offer WP-CLI. With it you can run:

wp user update YOUR_USERNAME --user_pass=NEW_PASSWORD

After you get in

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.