If you know your username or email use the “lost password” feature in WordPress

  1. Open your WordPress login page. For example, https://www.yourdomain.com/wp-login.php Replace yourdomain.com with your own domain name
  2. Click Lost your password?
  3. Enter your username or email address, click Get New Password
  4. Open your email account and find the Password Reset email. Click the reset link.
  5. Enter a new password and click Reset Password

If you do not know your username or email, reset your password via your database

If you have forgotten your WordPress administrator username or email address then you can reset your password in your database.

  1. Log in to cPanel.
  2. Click phpMyAdmin
  3. Select your WordPress database
  4. Select wp_users
  5. Click Edit next to your admin user. Take a note of the user_login name.
  6. Find user_pass, click the Function dropdown list next to it and select MD5. In the Value box delete the text and enter your new password. Click Go
  7. Open your WordPress login page and log in using your username and new password.