Skip to main content
MotherHosting

Reset your WordPress admin password

Get back into your WordPress dashboard. Use the "Lost your password?" link, or set a new password in phpMyAdmin when the email does not arrive.

Last updated 2 min read

Locked out of your WordPress dashboard? Try the email link first. If the email never arrives, you can set a new password through phpMyAdmin in cPanel.

Use the "Lost your password?" link

  1. Open your login page, normally yourdomain.com/wp-login.php.

  2. Press Lost your password? below the form.

  3. Enter your WordPress username or email address and press Get New Password.

  4. Open the email from your site and follow the link to choose a new password.

Check the spam folder too. The email goes to the address saved in your WordPress user profile, which may be an old one.

Change the password in phpMyAdmin

Use this only when the email does not arrive. You change one field in one row; leave everything else as it is.

  1. Log in to cPanel and open phpMyAdmin.

  2. On the left, click the database of your WordPress site. Not sure which one? In File Manager, select wp-config.php in the WordPress folder and press View: the line with DB_NAME names the database, and the line with $table_prefix shows how the table names begin (normally wp_).

  3. Click the table whose name ends in users, for example wp_users.

  4. Find the row with your username in the user_login column and press Edit.

  5. In the user_pass row, choose MD5 in the Function column and type your new password in the Value field, replacing the long text that is there.

  6. Press Go at the bottom.

  7. Sign in on your login page with the new password.

Choosing MD5 matters: without it WordPress does not accept the password. After you sign in, WordPress stores the password again in its own, stronger format.

Afterwards

  • Open Users → Profile in WordPress and check that the email address is one you can read, so the email link works next time.

  • Use a long password that you use nowhere else.

  • If you cannot sign in although you never changed anything, someone else may have changed the password. Once you are back in, look under Users for accounts you do not know.

If it does not work

  • Several WordPress sites on one hosting account each have a database of their own. Make sure you changed the right one.

  • A security plugin may block the login page after many wrong tries. Wait a while, then try again.

Still locked out? Open a ticket in Support, department Technical, category WordPress. Never send a password in a ticket.

Still need help?

Open a ticket and our support team will help you. We will see which article you read.

Open a ticket

To order, contact us

Tell us the plan or domain you want. We set up your order and send you the invoice.