Note
This variable is available starting with V2.2.77.
Description
default_password_lifetime specifies the password expiration time.
Privilege requirements
Query variables
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to obtain the value of a Global system variable.Modify variables
The
systenant can directly modify the value of a Global system variable.A MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a Global system variable.An Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of a Global system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 0 |
| Value range | [0,65535] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the password expiration time to 0.
obclient> SET GLOBAL default_password_lifetime =0;