码迷,mamicode.com
首页 > 数据库 > 详细

mysql 批量更换数据库表引擎 InnoDB 到 myISAM

时间:2017-01-03 18:37:29      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:数据   color   blog   status   info   concat   log   mysql   span   

USE `xxdb`;

SELECT CONCAT( ALTER TABLE  ,TABLE_NAME , ENGINE=MyISAM; ) as `sql-commands-for-convert-engine`
    FROM information_schema.TABLES AS t
    WHERE TABLE_SCHEMA = xijishopdb AND TABLE_TYPE = BASE TABLE;

show table status from xxdb

 

mysql 批量更换数据库表引擎 InnoDB 到 myISAM

标签:数据   color   blog   status   info   concat   log   mysql   span   

原文地址:http://www.cnblogs.com/Jscriptman/p/mysql-commands-for-convert-engine.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!