Barracuda VS antelope

version : 5.6.16-64.0-56-log

Innodb 行存储:
Innodb Plugin新引入Barracuda梭子鱼,包含Compressed和Dynamic两种行格式。而Compact和Redundant属于antelope 羚羊

Barracuda VS antelope
由innodb_file_format(动态)参数决定,目前可选择的值有Barrcuda/antelope,默认为后者。
因为共享表空间默认为antelope,要想使用Barrccuda为默认值,必须设定innodb_file_per_table=1


修改表字段类型长度时,提示:


原因:Innodb_file_format=antelope,而在创建表的时候,定义ROW_FORMAT=DYNAMIC,DYNAMIC和COMPRESSED属于BARRCUDA,因此alter table 修改字段长度会提示warnings,因而在修改字段时,修改Innodb_file_format=Barracuda,就不会提示warnings。

set global Innodb_file_format=Barracuda;
alter table ...............;

原文地址:https://www.cnblogs.com/hankyoon/p/5169651.html