If you're locked out and can't use the "Lost your password?" link, you can reset your password manually via phpMyAdmin in your hosting control panel (cPanel).
Here’s how to do it:
- Log in to your cPanel account.
- Open phpMyAdmin under the Databases section.
- Select your WordPress database from the left-hand panel.
- Locate and click on the wp_users table (note: the prefix may vary).
- Find your admin account and click Edit.
- In the user_pass field, enter your new password and set the function dropdown to MD5.
- Click Go to save the changes.
Your password has now been updated. You can log in to your WordPress admin panel using the new password.
Note: WordPress will rehash the password to a more secure format after your first login.