@jvaline
Just to add more, if you lost the WordPress password, and can’t reset using email. You can try accessing the WordPress dashboard from your hosting panel. Almost all the hosting panel provides the option to access the WordPress dashboard.
Depending on what exactly you lost, here’s the order I’d try:
- Forgot the username but still have the email: go to
yoursite.com/wp-login.php?action=lostpassword and enter your email address instead of the username. The reset email also contains your username.
- No reset email arrives: check spam. Many hosts don’t send WordPress emails reliably, so if nothing comes, go to step 3.
- Through your hosting panel: if WordPress was installed with Softaculous, Installatron or a “WordPress manager”, that tool usually has an “admin login” or “reset admin password” option.
- Through phpMyAdmin, which is also in the hosting panel: open the
wp_users table (the prefix may differ). There you can see the username in user_login and the email in user_email. To set a new password, edit your row, choose MD5 in the function column for user_pass, type the new password and save. WordPress converts it to a secure hash at your first login. Full steps: https://wordpress.org/documentation/article/reset-your-password/#through-phpmyadmin
- If you have SSH with WP-CLI:
wp user list shows the accounts, and wp user update USERNAME --user_pass="new-password" sets a new password.
Don’t post your username, email or password here. These steps only need access to your hosting account.