forked from pingcap/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create system-database.md (pingcap#201)
* Create system-database.md * Address comments * Update format * Add description * Add link for system database
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: The TiDB System Database | ||
category: user guide | ||
--- | ||
|
||
# The TiDB System Database | ||
|
||
The TiDB System Database is similar to MySQL, which contains tables that store information required by the server when it runs. | ||
|
||
## Grant System Tables | ||
|
||
These system tables contain grant information about user accounts and their privileges: | ||
|
||
- `user`: user accounts, global privileges, and other non-privilege columns | ||
- `db`: database-level privileges | ||
- `tables_priv`: table-level privileges | ||
- `columns_priv`: column-level privileges | ||
|
||
## Server-Side Help System Tables | ||
|
||
Currently, the `help_topic` is NULL. | ||
|
||
## Statistics System Tables | ||
|
||
- `stats_buckets`: the buckets of statistics | ||
- `stats_histograms`: the histograms of statistics | ||
- `stats_meta`: the meta information of tables, such as the total number of rows and updated rows | ||
|
||
## GC Worker System Tables | ||
|
||
- `gc_delete_range`: to record the data to be deleted | ||
|
||
## Miscellaneous System Tables | ||
|
||
- `GLOBAL_VARIABLES`: global system variable table | ||
- `tidb`: to record the version information when TiDB executes `bootstrap` |