Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-flush-privileges.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
22 changes: 22 additions & 0 deletions sql-statements/sql-statement-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand All @@ -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 <privileges>`](/sql-statements/sql-statement-grant-privileges.md) | Grants privileges. |
| [`GRANT <role>`](/sql-statements/sql-statement-grant-role.md) | Grants a role. |
| [`RENAME USER`](/sql-statements/sql-statement-rename-user.md) | Renames an existing user. |
| [`REVOKE <privileges>`](/sql-statements/sql-statement-revoke-privileges.md) | Revokes privileges. |
| [`REVOKE <role>`](/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

Expand Down