How can I programatically verify a password in newer versions of MySQL?
问题 In newer versions of MySQL there is a pluggable authentication system. Previously there was the PASSWORD function that could generate the hash found in user.authentication_string , but that function has been removed in later versions (8.0.11 AFAICT) of MySQL. If I would like to verify a users password (without actually logging in - since a user may not be able to log in from the host that I'm on), is there a way to do that using modern MySQL? 回答1: If I would like to verify a users password