The quickest way to reset a forgotten WordPress password is the Lost your password? link on your login page. WordPress emails you a reset link. If that email never arrives, or you no longer have access to that inbox, you can set a new password yourself from cPanel using WP Toolkit or phpMyAdmin.
Pick the first method that works for you. All three take a few minutes.
Method 1: Use “Lost your password?”
- Go to
https://yourdomain.co.za/wp-login.php(or/wp-admin, which redirects there). - Click Lost your password? under the login form.
- Enter your username or the email address on your WordPress account and click Get New Password.
- Open the email from WordPress and click the reset link. Check your spam folder if it is not in your inbox after a few minutes.
- Enter a new password, or keep the strong one WordPress suggests, and click Save Password.
- Log in with the new password.
The reset link only works once and expires after a while, so use it soon after it arrives.
Method 2: Reset it in WP Toolkit (cPanel)
Use this when the reset email does not arrive. You need your cPanel login (see how to log in to cPanel).
- Log in to cPanel and open WP Toolkit (newer cPanel versions may call it WordPress Management).
- Find your site’s card. If it is not listed, click Scan.
- Expand the site’s card if needed and click Setup (it sits beside the administrator username or under the site preview, depending on the version).
- In the users panel, choose the administrator account you want to change.
- Type a new password or click Generate, and copy it somewhere safe.
- Click Change. The new password works straight away.
Tip: WP Toolkit’s Log in button on the site’s card logs you straight into the dashboard without a password. Once you are in, you can change the password under Users > Profile.
Method 3: Reset it in phpMyAdmin
Use this if WP Toolkit does not list your site. Take a database backup first (see how to back up your WordPress site), because a wrong edit here can break your login for everyone.
- Find your database name: in cPanel, open File Manager, open
public_html/wp-config.phpand note the value ofDB_NAME. Note the$table_prefixvalue too (oftenwp_, but installers often use something else). - In cPanel, go to Databases and click phpMyAdmin.
- In the left column, click your WordPress database.
- Click the table that ends in
_users, for examplewp_users. - Find your username in the
user_logincolumn and click Edit on that row. - In the
user_passrow, delete the long value in the Value box and type your new password. - In the Function drop-down on the same row, choose MD5.
- Click Go at the bottom.
- Log in with the new password. WordPress automatically replaces the MD5 value with a stronger hash when you log in.
For more on phpMyAdmin, see how to use phpMyAdmin. The WordPress project also documents these methods in Reset your password.
If you also forgot your username
- Your username is in the reset email from Method 1 if you enter your email address.
- In WP Toolkit, the administrator username is shown on the site’s card.
- In phpMyAdmin, it is in the
user_logincolumn of the users table.
Common problems
| Problem | Fix |
|---|---|
| The reset email never arrives | Check spam. If it is still missing, your site may not be sending email reliably. Use Method 2, then set up email sending properly. See setting up SPF, DKIM and DMARC records. |
| “Invalid key” or “expired link” | The link was already used or is too old. Request a new one. |
| The new password does not work after a phpMyAdmin edit | Check the Function was set to MD5 and there were no spaces before or after the password. Edit the row again. |
| Locked out after too many attempts | A security plugin or the server firewall may be blocking your IP. Wait a while and try again, or open a ticket with your IP address so we can check. |
| You get logged straight back out | Clear your browser cookies for the site, or try a private window. |
After you get back in
- Save the new password in a password manager.
- Check Users > All Users for administrator accounts you do not recognise. If you find any, your site may be compromised: see how to keep your WordPress site secure.
- Make sure the email on your profile is one you can still access, so the next reset is easy.
- Turn on two-factor authentication.
Frequently Asked Questions
Can Web Design Hosting SA reset my WordPress password for me?
Yes, for sites hosted with us. Open a ticket from your client area, so we know the request comes from the account holder.
Is my WordPress password the same as my cPanel password?
No. WordPress, cPanel, email and the client area each have their own login. Resetting one does not change the others.
Can I reset the password with WP-CLI?
If your plan gives you SSH access, run wp user update USERNAME --user_pass="NewPassword" from your WordPress folder. Most people will find WP Toolkit easier.
Related guides
- How to log in to cPanel
- How to use phpMyAdmin
- How to set a strong password
- How to keep your WordPress site secure
Need help?
If none of these methods work, open a support ticket in the Support department, or message us on WhatsApp from our contact page.