Note
For V3.2.1, this parameter is available starting with V3.2.1.
Description
connection_control_failed_connections_threshold specifies the threshold for failed login attempts by a user.
Applicability
This parameter applies only to OceanBase Database in MySQL mode.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0 |
| Value range | [0, 2147483647] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
When you set the value of this parameter to 0, the feature is disabled, which means that the number of failed login attempts is not limited. If the number of failed login attempts exceeds the value specified by this parameter, the account is locked. The duration of the lockout is determined by the connection_control_min_connection_delay and connection_control_max_connection_delay parameters.
Examples
Set the threshold for failed login attempts by a user to 3.
obclient> ALTER SYSTEM SET connection_control_failed_connections_threshold = 3;