Note
This view is introduced since OceanBase Database V3.2.1.
Purpose
This view displays the number of failed login attempts of different users.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| USERHOST | varchar(261) | NO | The username and host information of the user that failed to log in, in the format of <user_name>@<hostname or ip address>. |
| FAILED_ATTEMPTS | bigint(20) | NO | The number of failed login attempts. |
Sample query
Query the number of failed login attempts by the user.
obclient> SELECT * FROM information_schema.CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS;
The query result is as follows:
+-------------+-----------------+
| USERHOST | FAILED_ATTEMPTS |
+-------------+-----------------+
| 'test'@'%' | 5 |
+-------------+-----------------+
1 row in set
References
For more information about the login failure handling policy in MySQL-compatible mode, see Login failure handling.