default_password_lifetime

2025-11-14 07:33:33  Updated

Note

This variable is available starting with V2.2.77.

Description

default_password_lifetime specifies the password expiration time.

Privilege requirements

  • Query variables

    The sys tenant and all user tenants can execute the SHOW VARIABLES statement or query the SYS.TENANT_VIRTUAL_GLOBAL_VARIABLE view (Oracle mode) or the information_schema.GLOBAL_VARIABLES view (MySQL mode) to obtain the value of a Global system variable.

  • Modify variables

    • The sys tenant can directly modify the value of a Global system variable.

    • A MySQL user tenant must have the SUPER or ALTER SYSTEM privilege to modify the value of a Global system variable.

    • An Oracle user tenant must have the ALTER SYSTEM privilege 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;

Contact Us