Recover my WordPress Password Through FTP

77 views
asked Apr 5, 2012 in Website Builder by biba23 (340 points)
Hi guys,

how can I recover my wordpress password through FTP?

thanks

1 Answer

0 like 0 dislike
answered Apr 5, 2012 by expert (14,380 points)
Connect to your website via FTP, go to wp-content/themes/Your Theme. Replace ‘your theme’ Edit your currently active theme’s functions.php file, if you don’t have one in your theme create it. Add this line:
wp_set_password('NewPassword', user_ID);
Upload the file back to your server. Now login using the password you added in functions.php.
...