ITPub博客

首页 > 数据库 > MySQL > Barracuda VS antelope

Barracuda VS antelope

原创 MySQL 作者:haoge0205 时间:2015-08-14 12:49:09 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: mysqldump 参数说明
请登录后发表评论 登录
全部评论

注册时间:2013-11-28

  • 博文量
    300
  • 访问量
    1893493