From 0e0a75f80ea34ab89a0439b2aec567aa7536cd4e Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Mon, 7 Sep 2026 11:18:48 +0900 Subject: [PATCH] This is an automated cherry-pick of #23196 Signed-off-by: ti-chi-bot --- .../sql-statement-flush-privileges.md | 2 +- sql-statements/sql-statement-overview.md | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/sql-statements/sql-statement-flush-privileges.md b/sql-statements/sql-statement-flush-privileges.md index 16f0a5dffdc47..721b31048d1c3 100644 --- a/sql-statements/sql-statement-flush-privileges.md +++ b/sql-statements/sql-statement-flush-privileges.md @@ -6,7 +6,7 @@ aliases: ['/docs/dev/sql-statements/sql-statement-flush-privileges/','/docs/dev/ # FLUSH PRIVILEGES -The statement `FLUSH PRIVILEGES` instructs TiDB to reload the in-memory copy of privileges from the privilege tables. You must execute this statement after manually editing tables such as `mysql.user`. However, executing this statement is not necessary after using privilege statements like `GRANT` or `REVOKE`. To execute this statement, the `RELOAD` privilege is required. +The `FLUSH PRIVILEGES` statement refreshes the in-memory privilege cache of TiDB from the privilege tables. You must execute this statement after manually editing privilege tables such as `mysql.user`. However, executing this statement is not necessary after using privilege statements like `GRANT` or `REVOKE`. To execute this statement, the `RELOAD` privilege is required. ## Synopsis diff --git a/sql-statements/sql-statement-overview.md b/sql-statements/sql-statement-overview.md index e60dc29d34660..49be5ac54d3dc 100644 --- a/sql-statements/sql-statement-overview.md +++ b/sql-statements/sql-statement-overview.md @@ -271,6 +271,7 @@ TiDB uses SQL statements that aim to follow ISO/IEC SQL standards, with extensio ## Account management / Data Control Language +<<<<<<< HEAD | SQL Statement | Description | | --------------------------------------------------------------------------- | ------------------------------------------------------------------- | | [`ALTER USER`](/sql-statements/sql-statement-alter-user.md) | Modifies a user. | @@ -290,6 +291,27 @@ TiDB uses SQL statements that aim to follow ISO/IEC SQL standards, with extensio | [`SHOW CREATE USER`](/sql-statements/sql-statement-show-create-user.md) | Shows the `CREATE` statement for a user. | | [`SHOW GRANTS`](/sql-statements/sql-statement-show-grants.md) | Shows privileges associated with a user. | | [`SHOW PRIVILEGES`](/sql-statements/sql-statement-show-privileges.md) | Shows available privileges. | +======= +| SQL Statement | Description | +|---------------|-------------| +| [`ALTER USER`](/sql-statements/sql-statement-alter-user.md) | Modifies a user. | +| [`CREATE ROLE`](/sql-statements/sql-statement-create-role.md) | Creates a role. | +| [`CREATE USER`](/sql-statements/sql-statement-create-user.md) | Creates a new user. | +| [`DROP ROLE`](/sql-statements/sql-statement-drop-role.md) | Drops an existing role. | +| [`DROP USER`](/sql-statements/sql-statement-drop-user.md) | Drops an existing user. | +| [`FLUSH PRIVILEGES`](/sql-statements/sql-statement-flush-privileges.md) | Refreshes the in-memory privilege cache from the privilege tables. | +| [`GRANT `](/sql-statements/sql-statement-grant-privileges.md) | Grants privileges. | +| [`GRANT `](/sql-statements/sql-statement-grant-role.md) | Grants a role. | +| [`RENAME USER`](/sql-statements/sql-statement-rename-user.md) | Renames an existing user. | +| [`REVOKE `](/sql-statements/sql-statement-revoke-privileges.md) | Revokes privileges. | +| [`REVOKE `](/sql-statements/sql-statement-revoke-role.md) | Revokes a role. | +| [`SET DEFAULT ROLE`](/sql-statements/sql-statement-set-default-role.md) | Sets a default role. | +| [`SET PASSWORD`](/sql-statements/sql-statement-set-password.md) | Changes a password. | +| [`SET ROLE`](/sql-statements/sql-statement-set-role.md) | Enables roles in the current session. | +| [`SHOW CREATE USER`](/sql-statements/sql-statement-show-create-user.md) | Shows the `CREATE` statement for a user. | +| [`SHOW GRANTS`](/sql-statements/sql-statement-show-grants.md) | Shows privileges associated with a user. | +| [`SHOW PRIVILEGES`](/sql-statements/sql-statement-show-privileges.md) | Shows available privileges. | +>>>>>>> 1a0b8b7656 (sql: remove unnecessary 'copy' from FLUSH PRIVILEGES description (#23196)) ## TiCDC