I have a weird one. I have a site that was abandoned for a while and we need to get access to it again. So I tried to use drush to reset the admin password, but it's not working.
I'm using Drush 8.1.17 on what I presume is a Drupal 7.57 site (because of the CHANGELOG.txt file in the docroot).
Syntax for my command is like:
php drush.phar upwd fakeadmin --password="examplepassword123"
I get a message
Changed password for fakeadmin success and because I'm literally looking at the users table in my database I can see the hash change in the password field. Yet, when I copy the text 'examplepassword123' (without single quotes) into my login page, it does nothing.
Am I just messing up the Drush 8 syntax? (I'm already more used to Drush 9). What would cause it to not work?
EDIT: Drush just uses whatever DB credentials are in the standard sites/default/settings.php file correct? So if that's correct, then I should be working with the right database. No?
1) I tried it without the double quote just in case and that didn't work either.
2) I also tried running the script
/scripts/password-hash.sh "examplepassword123" and copied the resulting hash into my database, and nothing happened. (found reading through this: https://www.drupal.org/node/992400)
3) I would almost say I'm using the wrong database at this point except that with another drush command I was able to see it add a new user_role row in an attempt to make another user we have access to an admin. Ideas?
EDIT: Well this was disappointing and weird. Drush was somehow changing the hash but not the password? An employee of ghosts past somehow had it saved on their hard drive, and gave me the password, and it was the same as before. I'm not going to question it....