How to reset WP administration user password

How to reset WP administration user password using Linux command or config file using SFTP access?

Given that the password is stored in the database, you’re going to need to use a method that access the database.

I have an issue as password was defined as MD5 inside MYSQL but can not login.

I have the same problem, unfortunately it would be nice to solve it

Thanks amyjones329 you managed to solve this problem

If you’ve forgotten your WordPress admin password, you can reset it via email from the WordPress dashboard login page following these steps:

  1. Go to your WordPress login page (example.com/wp-admin)
  2. Click on Lost your password? at the bottom
  3. Enter the Username or E-mail of your WordPress admin user, then click on Get New Password
  4. You should get an email with the subject [WordPress Site] Password Reset. The body of this email will contain a link below the text To reset your password, visit the following address, go ahead and click on that link.
  5. Type in your new password, confirm it, then click on Reset Password
  1. Log into your WordPress account.
  2. In the dashboard, select Users > All Users.
  3. Hover over the user whose password you want to change and click Edit.
  4. Scroll down to the Account Management section and click the Set New Password button

Here are the steps to reset a WordPress administrator user password using Linux command and SFTP access:

  1. Connect to your website using SFTP.
  2. Navigate to the root directory of your WordPress installation.
  3. Open the wp-config.php file in a text editor.
  4. Add the following lines of code at the bottom of the file:
    define( ‘WP_ALLOW_REPAIR’, true );
  5. Save the changes and close the file.
  6. Access the following URL in your browser: example.com/wp-admin/maint/repair.php (replace example.com with your domain name)
  7. Click on the “Repair Database” button.
  8. Once the repair is complete, you will see a message “Repair complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.”
  9. Remove the line of code you added in step 4 from the wp-config.php file.
  10. Go to your website login page.
  11. Click on “Lost your password?” link
  12. Type in the email address associated with the admin account, and click “Get New Password”
  13. Check the email associated with the admin account for a link to reset the password

I have validated an issue. Folder permissions were modified due to PHP strict conditions with the current PHP settings It is solved now and login works without an issue.