Skip to content

Commit 1cf566b

Browse files
committed
ps-10186-8.0 - [DOCS] - Document performance_schema.account_failed_login_lock_status table
1 parent 241e3bf commit 1cf566b

File tree

1 file changed

+44
-24
lines changed

1 file changed

+44
-24
lines changed

docs/misc-info-schema-tables.md

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Misc. INFORMATION_SCHEMA tables
22

3-
This page lists the `INFORMATION_SCHEMA` tables added to standard *MySQL* by *Percona Server for MySQL* that don’t exist elsewhere in the documentation.
3+
This page lists the `INFORMATION_SCHEMA` tables added to standard *MySQL* by *Percona Server for MySQL* that don't exist elsewhere in the documentation.
4+
5+
## Performance schema tables
6+
7+
### `performance_schema.account_failed_login_lock_status`
8+
9+
10+
The new `performance_schema.account_failed_login_lock_status` table is implemented in Percona Server for MySQL 8.0.44-35 and exposes information about temporary account locking from MySQL internal Access Control List (ACL) cache.
11+
12+
This table is read-only, and global, per-database or per-table `SELECT` privilege on this table are required from users who want to access the table contents.
13+
14+
| Column Name | Data Type | Description |
15+
|--------------------------|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
16+
| `USER` | `CHAR(..)` | Identifies the user account described by the table row |
17+
| `HOST` | `CHAR(..)` | Identifies the user account described by the table row |
18+
| `IS_TRACKING_ACTIVE` | `enum('YES','NO')` | Indicates whether failed login tracking is enabled for the account |
19+
| `MAX_ATTEMPTS` | `INTEGER` | Maximum number of failed login attempts allowed before account is locked (corresponds to FAILED_LOGIN_ATTEMPTS clause value in CREATE USER statement) |
20+
| `PASSWORD_LOCK_DAYS` | `INTEGER` | Number of days for which account will be temporarily locked after exceeding the MAX_ATTEMPS limit. Set to -1 if account is locked forever (corresponds to PASSWORD_LOCK_TIME clause value in CREATE USER) |
21+
| `IS_LOCKED` | `BOOLEAN` | Indicates if account is temporarily locked by failed login lock tracking. NULL if tracking is not enabled for account |
22+
| `REMAINING_ATTEMPTS` | `INTEGER` | Number of failed login attempts remaining before account will be locked. NULL if tracking is not enabled for account |
23+
| `REMAINING_DAYS_LOCKED` | `INTEGER` | Number of days for which account is locked due to failed login lock tracking. -1 means that account is locked "forever" (until server restart/FLUSH PRIVILEGES or specific account unlock). NULL if tracking is not enabled for account |
424

525
## Temporary tables
626

@@ -14,37 +34,37 @@ Only the temporary tables that were explicitly created with CREATE TEMPORARY TAB
1434

1535
| Column Name | Description |
1636
|------------------|-------------------------------------------------------------|
17-
| SESSION_ID | MySQL connection id |
18-
| TABLE_SCHEMA | Schema in which the temporary table is created |
19-
| TABLE_NAME | Name of the temporary table |
20-
| ENGINE | Engine of the temporary table |
21-
| NAME | Internal name of the temporary table |
22-
| TABLE_ROWS | Number of rows of the temporary table |
23-
| AVG_ROW_LENGTH | Average row length of the temporary table |
24-
| DATA_LENGTH | Size of the data (Bytes) |
25-
| INDEX_LENGTH | Size of the indexes (Bytes) |
26-
| CREATE_TIME | Date and time of creation of the temporary table |
27-
| UPDATE_TIME | Date and time of the latest update of the temporary table |
37+
| 'SESSION_ID' | 'MySQL connection id' |
38+
| 'TABLE_SCHEMA' | 'Schema in which the temporary table is created' |
39+
| 'TABLE_NAME' | 'Name of the temporary table' |
40+
| 'ENGINE' | 'Engine of the temporary table' |
41+
| 'NAME' | 'Internal name of the temporary table' |
42+
| 'TABLE_ROWS' | 'Number of rows of the temporary table' |
43+
| 'AVG_ROW_LENGTH' | 'Average row length of the temporary table' |
44+
| 'DATA_LENGTH' | 'Size of the data (Bytes)' |
45+
| 'INDEX_LENGTH' | 'Size of the indexes (Bytes)' |
46+
| 'CREATE_TIME' | 'Date and time of creation of the temporary table' |
47+
| 'UPDATE_TIME' | 'Date and time of the latest update of the temporary table' |
2848

2949
The feature was ported from *Percona Server for MySQL* 5.7 in 8.0.12-1.
3050

31-
This table holds information on the temporary tables that exist for all connections. You dont need the `SUPER` privilege to query this table.
51+
This table holds information on the temporary tables that exist for all connections. You don't need the `SUPER` privilege to query this table.
3252

3353
### `INFORMATION_SCHEMA.TEMPORARY_TABLES`
3454

3555
| Column Name | Description |
3656
|------------------|-------------------------------------------------------------|
37-
| SESSION_ID | MySQL connection id |
38-
| TABLE_SCHEMA | Schema in which the temporary table is created |
39-
| TABLE_NAME | Name of the temporary table |
40-
| ENGINE | Engine of the temporary table |
41-
| NAME | Internal name of the temporary table |
42-
| TABLE_ROWS | Number of rows of the temporary table |
43-
| AVG_ROW_LENGTH | Average row length of the temporary table |
44-
| DATA_LENGTH | Size of the data (Bytes) |
45-
| INDEX_LENGTH | Size of the indexes (Bytes) |
46-
| CREATE_TIME | Date and time of creation of the temporary table |
47-
| UPDATE_TIME | Date and time of the latest update of the temporary table |
57+
| 'SESSION_ID' | 'MySQL connection id' |
58+
| 'TABLE_SCHEMA' | 'Schema in which the temporary table is created' |
59+
| 'TABLE_NAME' | 'Name of the temporary table' |
60+
| 'ENGINE' | 'Engine of the temporary table' |
61+
| 'NAME' | 'Internal name of the temporary table' |
62+
| 'TABLE_ROWS' | 'Number of rows of the temporary table' |
63+
| 'AVG_ROW_LENGTH' | 'Average row length of the temporary table' |
64+
| 'DATA_LENGTH' | 'Size of the data (Bytes)' |
65+
| 'INDEX_LENGTH' | 'Size of the indexes (Bytes)' |
66+
| 'CREATE_TIME' | 'Date and time of creation of the temporary table' |
67+
| 'UPDATE_TIME' | 'Date and time of the latest update of the temporary table' |
4868

4969
The feature was ported from *Percona Server for MySQL* 5.7 in 8.0.12-1.
5070

0 commit comments

Comments
 (0)