Solved: See @RiggsFolly answer below for adequate work around.
Goal: I want to update user passwords using phpMyAdmin that have been stored using the password_hash() with PASSWORD_BCRYPT.
I am working on a web DB where the user passwords are set using php code such as:
$newPWHash = password_hash($newPW, PASSWORD_BCRYPT);
and then written into the database using:
$sql = "update employees set pw_hash = :newpwhash where employee_id = :id";
That part is fine, and I get how that is working. However, now I am trying to go back in an change user passwords for a number of accounts I created, and I would prefer to do it using phpMyAdmin's SQL window. I have tried:
UPDATE `table` SET `pw_hash` = PASSWORD('test') WHERE `email_address` = 'myemail@email.com'
However, this doesn't seem to be generating the same password. All the other passwords have the $2$y structure, and the ones generated by the above are not.
How to get this to work?