Skip to content

default_authentication_plugin is not compatable with MySQL's #54138

@CbcWestwolf

Description

@CbcWestwolf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.type/feature-requestCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions