首页 > 数据库技术 > 详细

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

时间:2017-01-03 18:36:26      阅读:221      评论:0      收藏:0      [点我收藏+]
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

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

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!