How to Reset Your WordPress Admin Password — WordPress Guides WordPress Guides

How to Reset Your WordPress Admin Password

By Genhost Team 2 min read

Locked out of WordPress? Don’t panic — there are three reliable ways back in. Start with the easiest, and if the reset email won’t arrive, the database method always works.

The simplest route, if your site can send email:

  1. Go to yourdomain.com/wp-admin.
  2. Click Lost your password?
  3. Enter your username or email.
  4. Open the reset email and set a new password.

If the email never arrives, your site probably can’t send mail — move to Method 2, which doesn’t depend on email.

Method 2: Reset via phpMyAdmin (always works)

This changes the password directly in the database — perfect when email fails.

  1. In cPanel, open phpMyAdmin.
  2. Select your WordPress database on the left (if unsure which, check wp-config.php for DB_NAME).
  3. Open the wp_users table (the prefix may differ, e.g. wp_ ).
  4. Find your user and click Edit.
  5. In the user_pass row:
    • Type your new password in the value box.
    • In the Function dropdown next to it, choose MD5.
  6. Click Go to save.

Now log in with the new password. WordPress automatically upgrades the stored hash to its modern format on your first login.

Back up the database first if you’re cautious, and edit only your own user’s user_pass field.

Method 3: WP-CLI (for the technical)

If you have SSH/terminal access (enable SSH):

wp user update your-username --user_pass="YourNewStrongPassword"

WP-CLI hashes it correctly for you.

Fix the real problem: email not sending

If the reset email never came, your site can’t send mail reliably — which also affects contact forms and order notifications. The usual fix is to send mail through an authenticated SMTP connection and to set up proper authentication records; see our SPF, DKIM and DMARC guide. Using your domain mailbox’s SMTP details (from create an email account in cPanel) with an SMTP plugin is a common, reliable solution.

Lock it down afterwards

Once you’re back in, strengthen your login:

Help when you need it

Every WordPress Hosting and Web Hosting plan includes phpMyAdmin for exactly this kind of recovery, and our support team can help you reset access or fix mail sending if you’re stuck.

Frequently asked questions

The WordPress reset email never arrives. What do I do?

Reset the password directly in the database using phpMyAdmin in cPanel, or with WP-CLI. The email often fails because the site cannot send mail; fixing that separately is worth doing, but phpMyAdmin gets you back in immediately.

How do I reset a WordPress password in phpMyAdmin?

Open phpMyAdmin in cPanel, select your WordPress database, open the wp_users table, edit your user, and set a new value in user_pass choosing the MD5 function from the dropdown. WordPress upgrades the hash automatically on your next login.

Is it safe to change the password in the database?

Yes, when done carefully. Edit only your own user's user_pass field and use the MD5 function so the password is stored hashed. Back up the database first if you are unsure, and never edit other fields you do not understand.