Note
For V4.6.x, this variable is available starting from V4.6.0.
Overview
default_authentication_plugin specifies the default authentication plugin for new users.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement, or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (in Oracle-compatible mode) and theinformation_schema.GLOBAL_VARIABLESview (in MySQL-compatible mode), to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Varchar(64) |
| Default Value | '' (orDEFAULT, same as '' ) |
| Value range | Specifies the plugin used for password hash calculation. Currently, only four settings are allowed:
NoteThe |
| Effective Scope | Global |
| Modifiable | Yes. You can use the SET statement to modify this variable. |
Configuration example
Set the default authentication plugin for new users to the caching_sha2_password plugin.
obclient> SET default_authentication_plugin = 'caching_sha2_password';
