5.4.4.1 Binary Logging Formats二进制日志记录格式

The server uses several logging formats to record information in the binary log:服务器使用几种日志记录格式在二进制日志中记录信息:

The logging format can also be set or limited by the storage engine being used. This helps to eliminate issues when replicating certain statements between a source and replica which are using different storage engines.日志记录格式也可以由所使用的存储引擎设置或限制。这有助于消除在使用不同存储引擎的源和复制副本之间复制某些语句时出现的问题。

With statement-based replication, there may be issues with replicating nondeterministic statements. In deciding whether or not a given statement is safe for statement-based replication, MySQL determines whether it can guarantee that the statement can be replicated using statement-based logging. 对于基于语句的复制,复制不确定性语句可能会出现问题。在决定给定的语句对于基于语句的复制是否安全时,MySQL确定是否可以保证使用基于语句的日志记录来复制该语句。If MySQL cannot make this guarantee, it marks the statement as potentially unreliable and issues the warning, Statement may not be safe to log in statement format.如果MySQL不能保证这一点,它会将语句标记为潜在的不可靠,并发出警告,语句可能不安全登录到语句格式中。

You can avoid these issues by using MySQL's row-based replication instead.您可以使用MySQL的基于行的复制来避免这些问题。