SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' ENGINE=InnoDB;' )
FROM information_schema.tables
WHERE table_schema = '需要改为某个数据库名称'
LIMIT 0 , 10000;
然后将执行的拖出来执行一次就好了
SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' ENGINE=InnoDB;' )
FROM information_schema.tables
WHERE table_schema = '需要改为某个数据库名称'
LIMIT 0 , 10000;
然后将执行的拖出来执行一次就好了