请问mysqldump备份时开启master-data 选项 会不会增加数据库资源,默认情况下配置文件中log-bin是注释掉的

没看懂该选项的说明,烦请嘉宾解释下=1与=2的区别,如果数据库一直运行下去的话,会不会额外增加数据库负担?毕竟要记录一些事件的日志,不知道这样理解对不对?  

参与6

2同行回答

liucj2004liucj2004其它undefined
不会对数据库增加额外的负担,只是记录一下主节点(备份节点)、binlog、偏移量等信息。这个参数只在需要做主从的时候使用,一般设置成2,手动获取语句然后搭建从节点。显示全部

不会对数据库增加额外的负担,只是记录一下主节点(备份节点)、binlog、偏移量等信息。这个参数只在需要做主从的时候使用,一般设置成2,手动获取语句然后搭建从节点。

收起
农业其它 · 2017-05-03
浏览1979
bryanbryan软件架构设计师金融研发
If the option value is 2, the CHANGE MASTER TO statement is written as an SQL comment, and thus is informative only; it has no effect when the dump file is reloaded. If the option value is 1, the statement is not written as a comment and takes effect...显示全部

If the option value is 2, the CHANGE MASTER TO statement is written as an SQL comment, and thus is informative only; it has no effect when the dump file is reloaded. If the option value is 1, the statement is not written as a comment and takes effect when the dump file is reloaded. If no option value is specified, the default value is 1.
上面是官方解释,其实就是在进行dump的时候所带的set master是否会在后期导入时起作用

收起
银行 · 2017-05-03
浏览2005

提问者

hufeng719
系统工程师某钢铁企业
擅长领域: 数据库存储服务器

问题来自

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-05-02
  • 关注会员:4 人
  • 问题浏览:5628
  • 最近回答:2017-05-03
  • X社区推广