Suppose I created two users, both of which use 2 different authentication plugins:
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';
Note how the users are using 2 different authentication plugins:
rachel is using mysql_native_passwordbob is using caching_sha2_passwordHow can I query mysql to retrieve this information about my users?
select user, plugin from mysql.user;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With