复制# 查看实例参数 例如: show variables like%innodb%; show global variables like%innodb%; # 查看实例状态,常用例如: show status likeuptime%; show global status likeconnection%; # 查看数据库链接: show processlist; show full processlist; # 查询某个表的句分结构: show createtable tb_name; # 查询某个表的源码库详细字段信息: show full columns from tb_name; # 查询某个表的全部索引信息: show indexfrom tb_name; # 查询某个库以cd开头的b2b信息网表: show tables likecd%; # 查询某个库中的所有视图: show table status where comment=view; # 查询某个用户的站群服务器权限: show grants fortest_user@%; 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.