Changing wordpress password from linux shell

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