Note
This variable is available starting with V2.2.77.
Description
validate_password_number_count specifies the minimum number of digits that must be present in a user password.
Privilege requirements
Query variables
systenants and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) and theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of Global system variables.Modify variables
systenants can directly modify the values of Global system variables.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the values of Global system variables.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the values of Global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 0 |
| Value range | [0,2147483647] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage
This variable must be used in conjunction with the validate_password_policy variable. It only takes effect when the value of validate_password_policy is set to MEDIUM.
Examples
Set the minimum number of digits in a user password to 1.
obclient> SET GLOBAL validate_password_number_count = 1;
References
For more information about password complexity, see Password complexity.