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 ;
每秒7000+事务
复制?分区?
原文:https://www.cnblogs.com/lccsblog/p/12584906.html