【实战】生僻的mysql
1.show table status like 'user'
2.alter table mytableEngine=InnoDB
需要执行很长时间,mysql会按行将数据从原表复制到一张新的表中,消耗大量i/o,原表上会加上读锁。
3.insert into innodb_table select * from myisam_table where id between x and y ;
4.select SQL_NO_CACHE count(*) from A;
每秒7000+事务
复制?分区?
慢查询日志,
通用日志




show profile
show status
show processlist

浙公网安备 33010602011771号