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.
    cPanel phpMyAdmin
  3. Select your WordPress database.
    phpMyAdmin select WordPress database
  4. Select wp_users.
    phpMyAdmin select wp_users table
  5. Click Edit next to your admin user. Take a note of the user_login name.
    phpMyAdmin Edit WordPress Admin User
  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.
    phpMyAdmin change WordPress Admin User Password
  7. Open your WordPress login page and log in using your username and new password.