一.基本的分析命令
explain
show create table name\G;
show index from tablename;
show table status like 'tablename'\G;
show global status like 'create_tmp_%tables';例如内部表的使用,索引以及读取的行的数量
查看当前会话的状态
mysql>flush status;
mysql>select ....
mysql>show session status like 'handler_read%';
show session/global variables like 'tmp_table_size';