In BE, when a problem happened, in the log, we can find the database id, table id, partition id, but no database name, table name, partition name. In FE, there also no way to find database name/table name/partition name accourding to database id/table id/partition id. Therefore, this patch add 3 new commands: 1. show database id; mysql> show database 10002; +----------------------+ | DbName | +----------------------+ | default_cluster:test | +----------------------+ 2. show table id; mysql> show table 11100; +----------------------+-----------+-------+ | DbName | TableName | DbId | +----------------------+-----------+-------+ | default_cluster:test | table2 | 10002 | +----------------------+-----------+-------+ 3. show partition id; mysql> show partition 11099; +----------------------+-----------+---------------+-------+---------+ | DbName | TableName | PartitionName | DbId | TableId | +----------------------+-----------+---------------+-------+---------+ | default_cluster:test | table2 | p201708 | 10002 | 11100 | +----------------------+-----------+---------------+-------+---------+
1.1 KiB
1.1 KiB
title, language
| title | language |
|---|---|
| SHOW DATABASE | en |
SHOW DATABASE
Description
This statement is used to display database name according to database id (for administrators only) Grammar: SHOW DATABASE [database_id]
example
- Display database name according to database id SHOW DATABASE 1001;
keyword
SHOW,DATABASE