Knowledgebase

Back to How To's

How do I reset my WordPress user password?


If a WordPress admin password has been forgotten, there are two ways to reset it - via the WordPress login page, or directly through the database using phpMyAdmin if the email reset is not available.


Method 1 - Reset via the Login Page

  1. Go to yourdomain.com/wp-admin.
  2. Click Lost your password? below the login form.
  3. Enter the admin email address or username and click Get New Password.
  4. WordPress will send a password reset link to the registered email address.
  5. Click the link in the email and set a new password.

This is the quickest method and should always be tried first.


Method 2 - Reset via phpMyAdmin (Database)

Use this method if the customer no longer has access to the email address associated with the WordPress account.

  1. Log in to StackCP and open phpMyAdmin.
  2. Select the WordPress database from the left panel (if unsure which one it is, check wp-config.php in File Manager for the DB_NAME value).
  3. Open the wp_users table (the prefix may differ if the site uses a custom table prefix).
  4. Find the admin user row and click Edit.
  5. In the user_pass field, clear the existing value and enter a new password.
  6. In the Function dropdown next to user_pass, select MD5.
  7. Click Go to save.

The admin password is now updated. Log in to /wp-admin with the new password.


Notes

  • If the wp_users table uses a different prefix (e.g. mywp_users), this will be visible in phpMyAdmin - the table name will end in _users.
  • After using the phpMyAdmin method, advise the customer to update their password to something secure and update it in their password manager.

Related Articles

How to Install Wordpress
How do I add and use WordPress contact forms?
How to Install WordPress Using WP-CLI
WordPress Multisite and Multiple Domains
How to Access and Edit a WordPress Site

Can’t Find what you need?

No worries, Our experts are here to help.