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 ...............;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28939273/viewspace-1771389/
,如需转载,请注明出处,否则将追究法律责任。