<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="binlog">
      </a>
      15.7.8.1 BINLOG Statement
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045168869872">
  </a>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa97268329"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">BINLOG</span> <span class="token string">'<em class="replaceable">str</em>'</span></code></pre>
  </div>
  <p>
   <a class="link" href="binlog.html" title="15.7.8.1 BINLOG Statement">
    <code class="literal">
     BINLOG
    </code>
   </a>
   is an internal-use
        statement. It is generated by the
   <a class="link" href="mysqlbinlog.html" title="6.6.9 mysqlbinlog — Utility for Processing Binary Log Files">
    <span class="command">
     <strong>
      mysqlbinlog
     </strong>
    </span>
   </a>
   program as the printable representation of certain events in
        binary log files. (See
   <a class="xref" href="mysqlbinlog.html" title="6.6.9 mysqlbinlog — Utility for Processing Binary Log Files">
    Section 6.6.9, “mysqlbinlog — Utility for Processing Binary Log Files”
   </a>
   .) The
   <code class="literal">
    '
    <em class="replaceable">
     <code>
      str
     </code>
    </em>
    '
   </code>
   value is a
        base 64-encoded string the that server decodes to determine the
        data change indicated by the corresponding event.
  </p>
  <p>
   To execute
   <a class="link" href="binlog.html" title="15.7.8.1 BINLOG Statement">
    <code class="literal">
     BINLOG
    </code>
   </a>
   statements when
        applying
   <a class="link" href="mysqlbinlog.html" title="6.6.9 mysqlbinlog — Utility for Processing Binary Log Files">
    <span class="command">
     <strong>
      mysqlbinlog
     </strong>
    </span>
   </a>
   output, a user account
        requires the
   <a class="link" href="privileges-provided.html#priv_binlog-admin">
    <code class="literal">
     BINLOG_ADMIN
    </code>
   </a>
   privilege (or the deprecated
   <a class="link" href="privileges-provided.html#priv_super">
    <code class="literal">
     SUPER
    </code>
   </a>
   privilege), or the
   <a class="link" href="privileges-provided.html#priv_replication-applier">
    <code class="literal">
     REPLICATION_APPLIER
    </code>
   </a>
   privilege
        plus the appropriate privileges to execute each log event.
  </p>
  <p>
   This statement can execute only format description events and
        row events.
  </p>
 </div>
 <br/>
</div>
