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

navicat执行语句:

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

posted on 2019-06-28 18:42  何木木  阅读(2073)  评论(0)    收藏  举报

导航