Forgotten your WordPress admin password or been hacked and need to reset your password? You can reset your WordPress admin password from the cPanel by doing the following:
- Log onto your WordPress hosting
- Navigate to your WordPress directory
- Open the wp-config.php file
- From this file, find out your database name
- Log into your cPanel
- Launch phpMyAdmin
- On the left hand side, expand the database for the WordPress website that you want to reset the admin password for
- Find and click on the xxx_users table (xxx will be whatever you set it to be when you installed WordPress. The default is wp_users). This will likely be the last table in the database
- Click the pencil icon to edit the database record for your admin user / password, that you want to reset
- Next, download an MD5 hash tool
- Use the hash tool to encrypt the password you want to reset your admin password to
- Overwrite the old password with the encrypted password
Your WordPress admin password is now reset – log in with the unencrypted password you entered into the MD5 hash tool.