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
- Go to
yourdomain.com/wp-admin. - Click Lost your password? below the login form.
- Enter the admin email address or username and click Get New Password.
- WordPress will send a password reset link to the registered email address.
- 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.
- Log in to StackCP and open phpMyAdmin.
- Select the WordPress database from the left panel (if unsure which one it is, check
wp-config.phpin File Manager for theDB_NAMEvalue). - Open the wp_users table (the prefix may differ if the site uses a custom table prefix).
- Find the admin user row and click Edit.
- In the
user_passfield, clear the existing value and enter a new password. - In the Function dropdown next to
user_pass, select MD5. - Click Go to save.
The admin password is now updated. Log in to /wp-admin with the new password.
Notes
- If the
wp_userstable 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.