加载中...

Mysql修改非事务引擎


1.Mysql获取非事务引擎的命令

SELECT table_schema database_name,table_name,engine FROM information_schema.tables WHERE table_schema NOT IN ('mysql','information_schema','performance_schema','sys') AND engine <> 'InnoDB';


2.获取修改存储引擎的脚本(执行表中的语句即可修改非事务引擎)

SELECT CONCAT('ALTER TABLE',table_schema,'.',table_name,'ENGINE=InnoDB;') sql_text FROM information_schema.TABLES WHERE table_schema NOT IN ('mysql','information_schema','performance_schema','sys')AND engine <> 'InnoDB';


3.执行语句修改


文章作者: huhuhahei
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 huhuhahei !
评论
  目录