面试题:TiDB中,以下哪个命令用于查看集群状态?

A. SHOW DATABASES
B. SHOW TABLES
C. ShOW CLUSTER STATUS
D. SHOW VARIABLES

1 个赞

C. ShOW CLUSTER STATUS

C. ShOW CLUSTER STATUS

我觉得也应该是是C,但是…

mysql> ShOW CLUSTER STATUS;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 12 near “CLUSTER STATUS”
mysql>

在shell下,是

tiup cluster display tidb-test

选择第三个C

并么有 ShOW CLUSTER STATUS这个命令

C不对吗

这是哪家的面试题?

选c吧, 第一个是数据库名, 第二个是表,最后一个是变量.