mysql - master和slave的sync_binlog不同

标签 mysql sql mysqlbinlog

如果master和slave的sync_binlog不同可以吗?对于我的系统,我可以看到主服务器有sync_binlog=1,从服务器有sync_binlog=0

最佳答案

完全没问题。

sync_binlog 仅对其配置的服务器产生影响。

值 0 提供更高的性能,但会降低在崩溃时丢失二进制日志条目的弹性。

因此,0 在副本上常见,1 在主服务器上常见。

关于mysql - master和slave的sync_binlog不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43960959/

相关文章:

mysql - 巨页无法与 mariadb 一起使用

php - 如何防止尝试创建同一个用户两次?

mysql - mysql 中存储函数创建错误 #1064

php - MySQL:酒店预订服务的复杂查询

mysql - 第1548章

mysql - 错误 : Binlogging on server not active when setting up Master Slave replication on one machine

MySQL 复制失败,错误为 "Could not parse relay log event entry."

mysql - 如何进行插入或删除?

sql - Postgresql 从包含数组的表中选择与数组中一样多的行

sql - 在应用 block 中使用需要表参数的标量函数