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 is available only for OceanBase Database in MySQL-compatible 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 |
Considerations
When the value is set to 0, the feature is disabled, meaning there is no limit on the number of failed login attempts. If the number of failed login attempts exceeds the threshold defined by this parameter, the account will be 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 to 3.
obclient> ALTER SYSTEM SET connection_control_failed_connections_threshold = 3;