Don't Stress Over Local Passwords

Are you working in a multi-server environment, such as local, staging and production? If you don't have User 1 (or some other user) access in your local setup, it's easy to remedy.

Enter drush and its user-password (upwd) command.

Changing a password is a cinch, whether you know the existing one or not, if you have drush access to the site, which you hopefully do, on your local development server.

drush upwd <username> --password="<new password>"

Example:

drush upwd admin --password="let-me-in"

 


Type:
Tip
Tags:
D9
D8
D7
drush
Drupal