Overview
validate_password_check_user_name specifies whether the user password can be the same as the username.
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 | Enum |
| Default Value | on |
| Value range |
|
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
This variable must be used together with the validate_password_policy variable. It takes effect only when the value of validate_password_policy is MEDIUM.
Configuration example
The user password cannot be the same as the username.
obclient> SET GLOBAL validate_password_check_user_name = on;
References
For detailed operations and instructions on password complexity, see Password complexity.