假设我创建了两个用户,他们都使用两个不同的身份验证插件:
CREATE USER IF NOT EXISTS 'rachel' IDENTIFIED WITH mysql_native_password BY 'super_secure_password';
CREATE USER IF NOT EXISTS 'bob' IDENTIFIED WITH caching_sha2_password BY 'amazing_password';
Run Code Online (Sandbox Code Playgroud)
请注意用户如何使用 2 个不同的身份验证插件:
rachel正在使用mysql_native_passwordbob正在使用caching_sha2_password我如何查询 mysql 来检索有关我的用户的信息?