批量修改Mysql表引擎为InnoDB的方法

批量更改表的存储引擎

用于生成变更的SQL语句:
[sql]
SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables WHERE table_schema='db_name' AND ENGINE='myisam';
[/sql]

用于生成检查表的SQL语句:
[sql]
SELECT CONCAT('CHECK TABLE ',table_name) FROM information_schema.tables WHERE table_schema='db_name';
[/sql]

阅读剩余
THE END