-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Nowadays, default_authentication_plugin
in tidb only affects the connection between servers and clients. It cannot control the default auth plugin when creating users without explicit auth plugin as in MySQL. Since caching_sha2_password
is safer than the default mysql_native_password
, it is better for tidb to support this compatibility with MySQL.
It determines which authentication plugin the server assigns to new accounts created by CREATE USER statements that do not explicitly specify an authentication plugin.
However, since currently using the caching_sha2_password
in TiDB requires a SSL connection, it is not suitable for TiDB to make it default authentication plugin after bootstrapping a new TiDB cluster. It is better to make it default after implementing complete caching_sha2_password
on TiDB.