How To Reset User Password From Command Line In WordPress

Posted by

Hello All,

In order to reset wordpress user password form command line one need to perform below mentioned steps:

1. Get an MD5 hash of your password.
2. mysql -u root -p” to login into MySQL.
3. Enter your mysql password.
4. Select WordPress database and tables;
5. SELECT ID, user_login, user_pass FROM wp_user_table name.
6. UPDATE name_of_user_table SET user_pass=password WHERE ID = user_ID
7. SELECT ID, user_login, user_pass FROM wp_user_table.


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.