Skip to content

Commit

Permalink
Update mysql-schema/mysql-schema.md
Browse files Browse the repository at this point in the history
Co-authored-by: Daniël van Eeden <github@myname.nl>
  • Loading branch information
CbcWestwolf and dveeden authored Jul 22, 2024
1 parent 334e085 commit db79f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql-schema/mysql-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `mysql` schema contains TiDB system tables. The design is similar to the `my

> **Note:**
>
> In most scenarios, it is not recommended to change system tables directly by `ALTER TABLE`. Instead, the recommended way is to use [`CREATE USER`](/sql-statements/sql-statement-create-user.md)/[`ALTER USER`](/sql-statements/sql-statement-alter-user.md)/ [`DROP USER`](/sql-statements/sql-statement-drop-user.md)/[`GRANT`](/sql-statements/sql-statement-grant-privileges.md)/[`REVOKE`](/sql-statements/sql-statement-revoke-privileges.md) etc. If you still want to alter the system tables directly, [`FLUSH PRIVILEGES`](/sql-statements/sql-statement-flush-privileges.md) is needed to make the change take effect.
> In most scenarios, it is not recommended to change the content of system tables directly by using `INSERT`/`UPDATE`/or `DELETE`. Instead, the recommended way is to use [`CREATE USER`](/sql-statements/sql-statement-create-user.md)/[`ALTER USER`](/sql-statements/sql-statement-alter-user.md)/ [`DROP USER`](/sql-statements/sql-statement-drop-user.md)/[`GRANT`](/sql-statements/sql-statement-grant-privileges.md)/[`REVOKE`](/sql-statements/sql-statement-revoke-privileges.md) etc. If you still want to alter the system tables directly, [`FLUSH PRIVILEGES`](/sql-statements/sql-statement-flush-privileges.md) is needed to make the change take effect.
## Grant system tables

Expand Down

0 comments on commit db79f3a

Please sign in to comment.