How to reset your WordPress password
Help centreOn this page
This guide explains how to set a new password for a WordPress user when you can’t log in. Try the methods in order.
Use the lost password link
- Go to
yourdomain.co.uk/wp-login.php. - Click Lost your password? under the login box.
- Enter your username or the email address on your WordPress account and click Get New Password.
- Open the email WordPress sends you and click the link inside.
- Set a new password and click Save Password.
If no email arrives after a few minutes, check your spam folder. If it still isn’t there, use one of the methods below.
Use WP Toolkit
- Log in to cPanel and click WP Toolkit.
- Find your site and click Log in. This signs you in without your password.
- In WordPress, go to Users, then click your username.
- Scroll down to Account Management and click Set New Password.
- Enter a strong password and click Update Profile.
Some versions of WP Toolkit also let you change the admin password from the site’s own settings in WP Toolkit. The exact wording varies between versions.
Use phpMyAdmin (last resort)
Only use this if the other methods fail. Changing the database by hand can break your site if you edit the wrong thing, so take a backup first.
- Log in to cPanel and click phpMyAdmin.
- On the left, click the database your site uses. You can find its name in the
wp-config.phpfile, on the line that startsdefine( 'DB_NAME'. - Click the
wp_userstable. Thewp_part is the table prefix and may be different on your site, for examplewpab_users. Check$table_prefixinwp-config.phpif you’re not sure. - Find the row for your username and click Edit.
- In the
user_passrow, choose MD5 from the Function drop-down. - Delete the old value and type your new password in plain text.
- Click Go to save.
- Log in with the new password.
WordPress replaces the MD5 value with a stronger hash the first time you log in, so you don’t need to do anything else.
If it doesn’t work
- The reset email never arrives. Your site may not be able to send email. Use WP Toolkit instead.
- The new password from phpMyAdmin doesn’t work. Check you picked MD5 in the Function column and edited the right user in the right database.
- You can’t tell which database belongs to the site. Open
wp-config.phpin File Manager and look atDB_NAME.
Good to know
Use a password manager to store a long, unique password. To add an extra layer of protection, see how to secure WordPress.
Still stuck? Open a support ticket and we’ll help.
WP Toolkit, staging, backups every six hours and free migration of your site.