Skip to content

Commit f7ab1db

Browse files
authored
PS-10186 [DOCS] - document performance_schema.account_failed_login_lock_status table in 8.4 (#601)
On branch ps-10186-8.4 new file: docs/additional-performance-schema-tables.md modified: docs/misc-info-schema-tables.md modified: mkdocs-base.yml
1 parent 0d4a8bb commit f7ab1db

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Additional PERFORMANCE_SCHEMA tables
2+
3+
This document lists the additional `PERFORMANCE_SCHEMA` tables provided by Percona Server for MySQL that are not documented elsewhere.
4+
5+
### `performance_schema.account_failed_login_lock_status`
6+
7+
The `performance_schema.account_failed_login_lock_status` table is available in Percona Server for MySQL 8.4.7-7 and later. The table exposes information about temporary account locking from the MySQL internal Access Control List (ACL) cache.
8+
9+
This table is read-only. Users need `SELECT` privilege on the `performance_schema` database or on this specific table to access its contents.
10+
11+
!!! note
12+
13+
If an account is locked using the `CREATE USER` or `ALTER USER` statements with the `ACCOUNT LOCK` clause, the `ACCOUNT LOCK` status is not captured in the `account_failed_login_lock_status` table. The server records the `ACCOUNT LOCK` state in the `mysql.user` table.
14+
15+
| Column Name | Data Type | Description |
16+
|--------------------------|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
17+
| `USER` | `CHAR(..)` | The MySQL user name |
18+
| `HOST` | `CHAR(..)` | The MySQL host name |
19+
| `IS_TRACKING_ACTIVE` | `enum('YES','NO')` | Indicates whether failed login tracking is enabled for the account |
20+
| `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) |
21+
| `PASSWORD_LOCK_DAYS` | `INTEGER` | Number of days for which account will be temporarily locked after exceeding the MAX_ATTEMPTS limit. Set to -1 if account is locked forever (corresponds to PASSWORD_LOCK_TIME clause value in CREATE USER) |
22+
| `IS_LOCKED` | `BOOLEAN` | Indicates if account is temporarily locked by failed login lock tracking. NULL if tracking is not enabled for account |
23+
| `REMAINING_ATTEMPTS` | `INTEGER` | Number of failed login attempts remaining before account will be locked. NULL if tracking is not enabled for account |
24+
| `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 |

docs/misc-info-schema-tables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Misc. INFORMATION_SCHEMA tables
1+
# Additional 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 document lists the additional `INFORMATION_SCHEMA` tables provided by Percona Server for MySQL that are not documented elsewhere in this documentation.
44

55
## Temporary tables
66

@@ -26,7 +26,7 @@ Only the temporary tables that were explicitly created with CREATE TEMPORARY TAB
2626
| ‘CREATE_TIME’ | ‘Date and time of creation of the temporary table’ |
2727
| ‘UPDATE_TIME’ | ‘Date and time of the latest update of the temporary table’ |
2828

29-
This table holds information on the temporary tables that exist for all connections. You don’t need the `SUPER` privilege to query this table.
29+
This table holds information on the temporary tables that exist for all connections. No special privileges are required to query this table.
3030

3131
### `INFORMATION_SCHEMA.TEMPORARY_TABLES`
3232

mkdocs-base.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ nav:
383383
- slow-extended.md
384384
- process-list.md
385385
- misc-info-schema-tables.md
386+
- additional-performance-schema-tables.md
386387
- Troubleshoot:
387388
- advisors.md
388389
- log-connection-error.md

0 commit comments

Comments
 (0)