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,要想使用Barrccud a为默认值,必须设定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 ............... ;
Innodb 行存储:
Innodb Plugin新引入Barracuda梭子鱼,包含Compressed和Dynamic两种行格式。而Compact和Redundant属于antelope 羚羊
Barracuda VS antelope
由innodb_file_format(动态)参数决定,目前可选择的值有Barrcuda/antelope,默认为后者。
因为共享表空间默认为antelope,要想使用Barrccud a为默认值,必须设定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
alter table ............... ;