mysql 常用性能查询方法

1、 show processlist;
2、select * from information_schema.innodb_trx\G
3、SELECT user, host, time, command, state,left(info,4000) FROM information_schema.processlist WHERE command<>'Sleep' and command<>'Daemon' and time>0;
4、 show engine innodb status\G
5、explain

 

posted @ 2018-05-30 15:52  year12  阅读(279)  评论(0编辑  收藏  举报