13.7.8.1 BINLOG Statement语句

BINLOG 'str'

BINLOG is an internal-use statement. BINLOG是一个内部使用语句。It is generated by the mysqlbinlog program as the printable representation of certain events in binary log files. 它由mysqlbinlog程序生成,作为二进制日志文件中某些事件的可打印表示。(See Section 4.6.9, “mysqlbinlog — Utility for Processing Binary Log Files”.) (请参阅第4.6.9节,“mysqlbinlog-用于处理二进制日志文件的实用程序”。)The 'str' value is a base 64-encoded string the that server decodes to determine the data change indicated by the corresponding event.'str'值是一个base 64编码字符串,服务器对其进行解码以确定相应事件指示的数据更改。

To execute BINLOG statements when applying mysqlbinlog output, a user account requires the BINLOG_ADMIN privilege (or the deprecated SUPER privilege), or the REPLICATION_APPLIER privilege plus the appropriate privileges to execute each log event.要在应用mysqlbinlog输出时执行BINLOG语句,用户帐户需要BINLOG_ADMIN权限(或不推荐的SUPER权限)或REPLICATION_APPLIER权限加上适当的权限来执行每个日志事件。

This statement can execute only format description events and row events.此语句只能执行格式化描述事件和行事件。