If one day you have to face the issue that your site is hacked, you are no longer able to login to your admin panel using the login information, these methods below will show you How to reset your WordPress password can be very useful. Follow the following steps to reset your WordPress password:
Method 1: Change WordPress password from dashboard
Step 1: Login to your WordPress dashboard
Step 2: From the left hand menu, click on Users
Step 3: Hover over your admin user, then click on Edit
Step 4: Scroll to the very bottom, fill out your new secure password twice, then click on Update Profile
You should now see that your admin profile has been updated
Method 2: Reset your WordPress password via email
Step 1: Go to your WordPress login page (yoursite.com/wp-admin)
Step 2: Click on Lost you password at the bottom
Step 3: Enter the Username or E-mail of your WordPress admin user, then click on Get New Password
Step 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” all you need is go ahead and click on that link.
Step 5: Type in your New password, confirm it, then click on Reset Password
Method 3: Changing your WordPress password via phpMyAdmin
Step 1: Login to cPanel. Under the Databases section, click on phpMyAdmin.
Step 2: Click on your WordPress database. Next click on the wp_users
Click on Edit beside your WordPress admin user.
Step 3: In the user_pass field, paste your password.
From the drop-down, select MD5 (This means that you will not be able to enter plain text as the password. You would need to use one of the MD5 generators online to generate your password).
Step 4: Finally click on Go.
You should now see a success message from phpMyAdmin saying the database record was updated.
Method 4: Changing your WordPress password via FTP
Step 1: Login to your website via FTP and navigate to your theme’s functions.php file and download it to your local computer.
In my case this was sharepressteam\wp-content\themes\g5plus-orson\functions.php
Step 2: On line 2, right after the first <?php line add this:
Setting the password to your-password, and we’re updating it for the user your-admin-name, if your admin user has a different username you’ll want to be sure to use that.
Step 3: Upload this modified functions.php file back to your \themes folder on the server.
Step 4: Login to your WordPress dashboard using the new temporary password you just set.
Now that you’ve successfully reset your password, remove the wp_set_password line from your local functions.php file, and re-upload it. This way WordPress doesn’t reset the password every single time the admin dashboard is accessed going forward.
Hopefully that this article can helps you know the methods in order to reset your WordPress password in your WordPress Website. See you again in orther tutorials!