mysql 常用性能查询方法
时间:2022-03-15 08:33
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