| 命令 | 功能描述 |
|---|---|
| 表名以 tb_name 代替 | |
| check table tb_name | 检查表 |
| repair table tb_name | 修复表 |
| show table status like tb_name | 查看表的相关信息 |
| show profiles | 查询剖析命令 |
| show profile for query id | |
| show status | 计数命令 |
| show engines | 查询数据库存储引擎 |
| show variables like ‘%storage_engine%’; | 查看默认的存储引擎 |
| show processlist | 查看当前MySQL在进行的线程 |
show variables like ‘**%max_allowed_packet%**‘ |
查看SQL语句最大长度 |
| show create table tb_name | 查看建表DDL |
| show index from tb_name ; | 查询指定表的索引 |
| show variables like ‘%tx_isolation%’ | 查看事务隔离级别 |
| select @@tx_isolation; | 设置事务隔离级别 |
