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.
Applicability
This parameter applies only to OceanBase Database in MySQL mode.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.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 the value of this parameter is set to 0, the feature is disabled, which means that the number of failed login attempts is not limited. After the number of failed login attempts exceeds the value of this parameter, the account will be locked. The lock duration is determined by the connection_control_min_connection_delay and connection_control_max_connection_delay parameters.
Examples
Set the threshold for failed login attempts to 3.
obclient> ALTER SYSTEM SET connection_control_failed_connections_threshold = 3;