Changing wordpress password from linux shell

Wordpress Add comments

If you prefer to change Wordpress admin or any user password from the shell it can be easily done by mysql command line.

Connect to the database with dedicated user or with root

mysql -u root -p wordpressdb

enter password and

update wp_users set user_pass=md5(’newpwd’) where user_login=’admin’;

The above line will change admin user password to newpwd

You can easily script and change wordpress user passwords via perl DBI module.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in