收藏 分销(赏)

修改其他引擎表为INNODB-表.docx

上传人:仙人****88 文档编号:11899764 上传时间:2025-08-19 格式:DOCX 页数:4 大小:15.22KB 下载积分:10 金币
下载 相关
修改其他引擎表为INNODB-表.docx_第1页
第1页 / 共4页
修改其他引擎表为INNODB-表.docx_第2页
第2页 / 共4页


点击查看更多>>
资源描述
修改其他表为INNODB 表很简单一条语句即可 alter table table_name engine=innodb mysql> show table status like 'u1'\G *************************** 1. row ***************************            Name: u1          Engine: MyISAM         Version: 10      Row_format: Dynamic            Rows: 131072  Avg_row_length: 55     Data_length: 7340024 Max_data_length: 281474976710655    Index_length: 1024       Data_free: 0  Auto_increment: NULL     Create_time: 2015-02-05 06:38:12     Update_time: 2015-02-05 06:38:12      Check_time: NULL       Collation: utf8_general_ci        Checksum: NULL  Create_options:         Comment: 1 row in set (0.00 sec) mysql>  show table status like 'u1'\G *************************** 1. row ***************************            Name: u1          Engine: InnoDB         Version: 10      Row_format: Compact            Rows: 130732  Avg_row_length: 84     Data_length: 11026432 Max_data_length: 0    Index_length: 0       Data_free: 4194304  Auto_increment: NULL     Create_time: 2015-02-26 08:02:29     Update_time: NULL      Check_time: NULL       Collation: utf8_general_ci        Checksum: NULL  Create_options:         Comment: 1 row in set (0.00 sec) 注意红色部分同等数据量innodb 所占的磁盘要bimyisam 所占磁盘的空间要多 将u1变回myisam 引擎表 mysql> alter table u1 engine=myisam; Query OK, 131072 rows affected (0.31 sec) Records: 131072  Duplicates: 0  Warnings: 0 mysql>  show table status like 'u1'\G *************************** 1. row ***************************            Name: u1          Engine: MyISAM         Version: 10      Row_format: Dynamic            Rows: 131072  Avg_row_length: 55     Data_length: 7340024 Max_data_length: 281474976710655    Index_length: 1024       Data_free: 0  Auto_increment: NULL     Create_time: 2015-02-26 08:05:47     Update_time: 2015-02-26 08:05:47      Check_time: NULL       Collation: utf8_general_ci        Checksum: NULL  Create_options:         Comment: 1 row in set (0.00 sec) 所占空间又变回去了。
展开阅读全文

开通  VIP、SVIP  下载更划算
下载10份以上建议开通 VIP 会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        关注我们

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服