We can reset the wordpress admin dashboard password through FTP. Go through the following steps to reset the password
- Login to your wordpress active theme's function.php file
- Edit the file and add following code to it right at the beginning after the <?php
wp_set_password( 'password', 1 );
replace the 'password' with you new password. Number 1in the function indicates the user id in the wp_users table which is for admin user
- Save the file upload it back to your web site
- Then after you will be able to login to the site using the new password
Note: Please remove the extra code that have been added after you login to the dashboard, other wise the password will reset every time we load the page.