在具有外键的表上删除忽略可能会破坏复制

DELETE IGNORE on Tables with Foreign Keys Can Break Replication

I am using replication in a MYSQL database. I have read some where DELETE IGNORE command on Tables with Foreign Keys can break Replication. Is it true? If it is true then how can workaround this?

您可能在此处阅读:https://www.percona.com/blog/2012/02/02/stop-delete-ignore-on-tables-with-foreign-keys-can-break-replication/

该博客中显示了有关 DELETE IGNORE 如何对复制不安全的详细信息。

解决问题的方法是执行以下任一操作:

  • 不要使用 DELETE IGNORE
  • 通过设置 binlog-format=ROW
  • 使用 Row-Based 复制