Search This Blog

Thursday, May 14, 2015

[SOLVED} How to RESET/CHANGE Administrator/Super User Password using Drush in Drupal 7?

If you have forgotten your Administrator password for your Drupal 7 Site you can try the following command in Drush to recover it:

 drush uli admin-username  

This will generate a one time login link. By default it provides one-time login link for administrator.

If you want to generate for other user try the following:

 drush uli some-username  

This will generate one time login link for that user.

Also you may try the method below:

 $ drush help user-password  

(Re)Set the password for the user account with the specified name.

Examples:

 drush user-password someuser --password="pass123"   

Sets the password for the username someuser.

Arguments:
 - name The name of the account to modify.
 - Options: --password= The new password for the account. Required.
 - Aliases: upwd

No comments:

Post a Comment

Thank you for your Feedback!
www.evagabond.me

Top Magento Hosting:

Top 5 Posts (Weekly)