When developing Drupal sites locally, you might need to log in to the local site.
If you've just installed the local Drupal site, or if you've just replaced the database, you will need to generate a one-time use login.
You will be logged in to the local Drupal site. Edit the user profile to set a password for the account. Make a note of the username.