我无法理解为什么更新忽略 sql 查询会对复制产生影响?有人可以解释一种我可以理解的方式,而不是指出基于语句的复制是不安全的。
最佳答案
这位于 UPDATE 语句的帮助页面上
UPDATE IGNORE statements, including those having an ORDER BY clause, are flagged as unsafe for statement-based replication. (This is because the order in which the rows are updated determines which rows are ignored.) With this change, such statements produce a warning in the log when using statement-based mode and are logged using the row-based format when using MIXED mode. (Bug #11758262, Bug #50439) See Section 18.2.1.3, “Determination of Safe and Unsafe Statements in Binary Logging”, for more information.
我觉得很清楚——你的问题到底是什么?
关于mysql - 为什么更新忽略sql查询对复制有影响?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40271885/