Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view which mysql authentication plugin a user's password is using?

Tags:

mysql

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:

  • User rachel is using mysql_native_password
  • User bob is using caching_sha2_password

How can I query mysql to retrieve this information about my users?

like image 994
g.delgado Avatar asked Dec 13 '25 18:12

g.delgado


1 Answers

select user, plugin from mysql.user;

like image 53
g.delgado Avatar answered Dec 16 '25 12:12

g.delgado



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!