show status;//查询mysql各种状态;
show variables like 'long_query_time';//慢查询的限定时间
set long_query_time=1;//设置慢查询的限制时间
show global status like 'slow_queries';//执行了几次慢查询
show global status like 'com_select';//数据库从开始到现在执行过多少次查询操作
show status like 'com_insert';//数据库当前回话下,执行多少次插入操作
delimiter $$ 修改命令结束提示符
desc Person;//查看Person表结构
show keys from Person G;//查看Person表中的索引(格式化结果)
show index from Person;//查看Person表中的索引