批量修改mysql表的引擎,从MyISAM修改为InnoDB

navicat执行语句:

select CONCAT('alter table ',table_name,' engine=InnoDB;') FROM information_schema.tables WHERE table_schema="数据库名" AND ENGINE="MyISAM";
然后把结果生成的语句复制过来执行一下就OK了

猜你喜欢

转载自www.cnblogs.com/hyc-go/p/11104308.html