Hint: When you can use Drush just use drush uli
.
You probably know the situation where you need to reset a Drupal 7 password. For that case you simply change Drupal’s index.php to following:
After you did that you can open your Drupal website and see a salted hash instead of the plain text password.
Login into your database and browse to the user
table. Now you can search for the user (administrator account) and set the password` value to the displayed hash.
This can be also achieved by executing this command: