Option 1: Use “Lost your password?”
1
Open the login page
Go to
https://yourdomain.com/wp-login.php.2
Request a reset link
Click Lost your password?, enter your WordPress username or email address, and click Get New Password.
3
Set a new password
Open the email from your website and follow the link to choose a new password.
Option 2: Reset it in phpMyAdmin
This works even if WordPress can’t send email.1
Find your database name
Log in to cPanel and open File Manager. In your site’s folder (usually
public_html), open wp-config.php and note the value of DB_NAME. Note $table_prefix too. It’s usually wp_.2
Open phpMyAdmin
In cPanel, open phpMyAdmin. Click your database name in the list on the left.
3
Open the users table
Click the table ending in
users, for example wp_users. Find your admin user and click Edit.4
Set a new password
In the
user_pass row, choose MD5 in the Function column, type your new password in the Value column, and click Go.https://yourdomain.com/wp-login.php with the new password. WordPress automatically upgrades it to its stronger storage format the first time you log in.
After you’re back in
- Check Users in WordPress for admin accounts you don’t recognise. If you find any, your site may have been hacked. Delete them and open a ticket.
- Make sure Settings → General → Administration Email Address is an address you check.
- Use a strong, unique password, and consider a two-factor authentication plugin.