Drupal password recovery
3 answers
This solution is valid for Drupal 5 or 6, but not Drupal 7. This version does not use a standard hashed password. You can get your encoded password by running the following command:
php /path_to_drupal_files/scripts/password-hash.sh your_password
Then you can see your password hash. This is the string you should use in the database to update the admin password. You can use the following SQL query to update your Drupal database.
UPDATE users SET pass='YOUR_PASSWORD_HASH' where uid=1;
+4
source to share