Did you forget your WordPress password or want to change your existing password? Don’t worry, there are several ways to reset the password so you can get back to business.
Change WordPress admin password from WordPress dashboard
First we will deal with how to change the admin password if you have access to your WordPress account.
Access the WordPress dashboard. Generally this can be done by using example.com/wp-admin (example.com is replaced by your website’s domain name)
Enter your admin username and password and log in
Click on Users in the left hand menu
Hover your cursor over the admin user and click Edit
Scroll down to Account management
Click on Generate password
You will be provided with a secure password that you may change as you wish. Make sure that your password is strong (green), indicated by the strength box.
Click Update profile
Reset WordPress password through email
If you have forgotten your WordPress password but you have access to your WordPress user’s email address, you can reset your password through the “Lost password” email reset link.
Go to your WordPress admin login page. This can be done by using example.com/wp-admin (replace example.com with the domain name of your website)
Click Lost your password? underneath the login box
Enter the email or username connected to your WordPress account
Click Get new password
You will receive an email containing a link to reset your password. Click the link
Enter your new password and click Reset password
Reset WordPress password through a file
Warning: for advanced users only
If you have forgotten your WordPress password but you have access to your WordPress files, either by (S)FTP or through the File Manager or the command line, you can manually reset its password as follows:
Locate the functions.php file of your current active theme. For most, it will be located in: public_html/wp-content/themes/THEMENAME/functions.php
Open the file in edit mode
Copy and paste the following line of code right at the beginning of the functions.php file, after the first <?php tag:
wp_set_password( 'NEWPASSWORD', 1 );
Replace NEWPASSWORD with your new password. Keep the 1 as such; it's the ID of your primary WordPress userSave the file; upload it to the server if using (S)FTP
Log in to WordPress Admin using the password you set above
Once you're in, remove the line of code you added in step 3 from the functions.php
Reset WordPress password through cPanel’s 1-click Apps (Softaculous)
If you’ve installed WordPress through our 1-click Apps Installer (Softaculous), you may be able to easily change its password through your cPanel.
Log in to your cpanel account
Click 1-click app installer under popular tools
Click the WordPress icon
Under Current installations click the Edit icon of your admin account
Under Admin account enter your admin username in the area indicated
In Admin password type your new password
Go to the bottom of the screen and click Save installation details
Reset WordPress password through phpMyAdmin
This method allows you to change your password in the database with the program phpMyAdmin.
Please remember to back up your database before making any changes.
Access your cPanel account
In the Databases section, click phpMyAdmin
In the left-hand pane, find your WordPress database. It should appear as yourcpanelusername_wpXXX , i.e. your cPanel username followed by _wp and several digits.
Do you have multiple WordPress installations on your account? Here is how to determine which database to modify.Click on the WordPress database identified in the previous step
In the dropdown menu, click on wp_users. This is a generic database name; yours may be a different but should still contain the elements of wp_users, such as wppy_users or wp_xyz_users.
Under user_login find your admin username (often admin)
Click Edit
Find user_pass and under the value column type in the password you wish to use
Under the function column, select MD5
Click Go