In WordPress, there are multiple ways that you can reset your password. Here are the ways that can be done.
If you wish to change your passwords in current versions:
You can change your password through the automatic emailer:
You can use the “lost password” feature of WordPress, if you know your email or username.
Change Password Through FTP
There is also an easy way to reset your password via FTP, if you’re using the admin user.
1. Login to your site via FTP and download your active theme’s functions.php file.
2. Edit the file and add this code to it, right at the beginning, after the first <?php:
wp_set_password( 'password', 1 );
Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.
So for example: wp_set_password( ‘abc1234’, 1 );
3. Upload this modified file back to your site.
4. After you then are able to login, you need to make sure to go back and remove that code. It will reset your password on every page load until you do.