Overview
validate_password_length specifies the minimum length of a user password.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Uint |
| Default Value | 0 |
| Value range | [0,2147483647] |
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
The minimum length for a user password is set to 8 characters.
obclient> SET GLOBAL validate_password_length= 8;
References
For detailed operations and instructions on password complexity, see Password complexity.