How to change WP password into database

I did it a few times but always made a search and dug WordPress code. So, just generate a new password:
PHP -r 'echo crypt("new_wp_pass") . "\n";'
and update specified user in the table wp_users:
UPDATE wp_users SET user_pass='generated password hash' where ID='desire user ID';

Leave a Reply

Your email address will not be published. Required fields are marked *