Home > Linux, PHP > How to change WP password into database

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:

  1. PHP -r ‘echo crypt("new_wp_pass") . "\n";’

and update specified user in the table wp_users:

  1. UPDATE wp_users SET user_pass=‘generated password hash’ WHERE ID=‘desire user ID’;

Categories: Linux, PHP Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes