Note
This variable is available starting with V4.4.2 BP1.
Overview
default_authentication_plugin specifies the authentication plugin to be used by new users by default.
Privilege requirements
Query variables
The
SHOW VARIABLESstatement, or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (in Oracle-compatible mode) and theinformation_schema.GLOBAL_VARIABLESview (in MySQL-compatible mode), can be used by thesystenant and all user tenants 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-compatible 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:
Note
|
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the default authentication plugin for new users to the caching_sha2_password plugin.
obclient> SET default_authentication_plugin = 'caching_sha2_password';