Resetting WordPress passwds

To reset a wordpress password, first generate the hash:

perl -e 'use Digest::MD5(md5_hex);print md5_hex("the_password"),"n";'

then update the password in the database:

mysql
mysql>select * from wp_users;
mysql>update wp_users set user_pass='the_hash_string' where ID=xx;
mysql>exit

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>