Skip to content
This repository was archived by the owner on Mar 27, 2021. It is now read-only.

Conversation

sultan8252
Copy link

1 mysql备份数据库 调整配置参数开启压缩功能
my.cnf中增加 innodb_file_format = Barracuda innodb_file_format_max = Barracuda
mysql中执行 set global innodb_file_format="Barracuda";  set global innodb_file_format_max="Barracuda";
ps 如不做上述操作 也可使用,只有在做 tablespace import时会出现导入失败问题
2 如已存在相关的备份表 需要手动修改为压缩表
alter table table1 ROW_FORMAT=COMPRESSED;
3 新增备份表将自动建立为压缩表

sudan added 2 commits February 22, 2019 19:41
修改表支持为压缩表

Signed-off-by: sudan <dan.su@yooli.com>
Signed-off-by: sudan <dan.su@yooli.com>
Copy link
Owner

@hhyo hhyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢pr,可能会延长备份时间,不过可以接受

@hhyo hhyo merged commit 8ca587c into hhyo:master Feb 25, 2019
@hhyo
Copy link
Owner

hhyo commented Feb 25, 2019

版本号没有变更,不会构建新的docker镜像,请知晓

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants