Resetting Drupal Passwords in Drupal 7 with Drush

Sometimes, whether in testing or other situations, you need to reset a password (often the admin password) for a Drupal site.
The shortest answer is that two wonderful options are built into drush!

# Get an admin login link
drush uli
# Set the password for any user
drush upwd admin --password="newpassword"

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Drupal - Hiding field group and its Children