TOOL · FREE · RUNS IN YOUR BROWSERallwpcare.com/tools/wordpress-password-reset-generator/
Free tool

WordPress admin password reset helper

Locked out of your own site and the reset email never comes? Build the exact WP-CLI line or SQL to set a new password, with plain steps.

Built on your device. The password is never sent anywhere or stored.

For your own site only. This helps the owner of a site who can already reach the server or the database (a host control panel, SSH or phpMyAdmin) and has lost the password. It cannot get you into a site you have no server access to, and it does not change anything by itself. You run the lines it builds.

Which account gets the new password?
The name you type on the login page, such as admin.
Only used by the SQL. It is the $table_prefix line in wp-config.php. Empty means wp_.
The button makes 20 random letters, numbers, dashes and underscores, and shows it so you can write it down. Or type your own. It stays on this page and is gone when you close or reload it.

To see the lines: Fill in the username above.

After you are back in

  1. Log in right away. The SQL way saves a plain MD5 value, which is weak. WordPress accepts it once and saves a stronger hash at your first successful login.
  2. Set a new password again under Users, then Profile, if the temporary one passed through anything shared: chat, email, a support ticket or a screen share.
  3. Remove the lines you ran. Delete the SQL from your phpMyAdmin history and the WP-CLI command from your shell history. Clear your clipboard, and close this page so the password is gone from it.
  4. If you were locked out by a hack, not a lost password: read WordPress security settings that matter, in order, check Users for accounts you do not know, then make new keys with the salt generator. Changing the salts signs everyone out.

Why the reset email may not arrive

How it works

What this is for

You own the site, you cannot log in, and the "Lost your password?" email does not arrive. This page covers the ways WordPress documents for setting a new password when you can reach the server or the database. It is not a way into a site you cannot already reach at that level.

Which way to pick

  • WP-CLI: needs SSH. WordPress hashes the password itself.
  • SQL: for phpMyAdmin, Adminer or the mysql client. You run a select to find the account, then one update.
  • phpMyAdmin without SQL: edit the user row and choose MD5 in the Function column.
  • Other ways: the login page link, the profile screen, the FTP trick and the emergency script, described from the official guide.

How the SQL works

The update asks MySQL to write MD5('your password') into the user_pass column. WordPress still accepts a 32 character MD5 there and replaces it with a stronger hash when you log in. So this page never hashes anything itself. It only quotes your text so it cannot break the statement. Plain text goes in quotes. Anything with a quote, a backslash or non-English characters is written as a hex value, which is safe in every server mode.

Safety

  • The SQL has one update and it always has a WHERE part, so it changes one account.
  • Back up the users table before you run it. Importing the backup undoes it.
  • Log in right away, then clean up as the steps under the tool say.

FAQ

Can I use this to get into a site that is not mine?

No, and it would not work. It only builds lines for you to run. You need server access already: SSH, or phpMyAdmin from your host's control panel. If you cannot reach those, ask your host. They can check who you are.

Does WordPress still accept an MD5 password in the database?

Yes. In the current WordPress source, wp_check_password() treats a stored value of 32 characters or fewer as an MD5 and compares it with md5( $password ). At your next successful login WordPress saves a stronger hash in its place. The official Reset your password page still documents this. WordPress 6.8 and later save new passwords with bcrypt, and the MD5 value is still accepted.

Why can my password not start or end with a space?

WordPress trims spaces when it saves the stronger hash at your first login, but the MD5 check does not trim. The first login would work, and later ones with the space would fail. So the tool asks you to remove them.

Is my new password sent anywhere?

No. The page builds the lines on your device, and no network request carries the password or the account name. The password lives in the page until you close or reload it. It is not saved in cookies or browser storage.

I ran the SQL and it says 0 rows affected.

Nothing changed. The table prefix, the database or the name did not match a row. Run the first (select) statement and check that it shows one row.

Which method should I choose?

WP-CLI if your host gives you SSH. It uses WordPress's own code. Otherwise phpMyAdmin: the SQL tab if you are comfortable pasting, or the no-SQL tab if not.