mysqlbinlog --database Fails in Versions Before 5.5.32 and 5.6.12: "You have an error in your SQL syntax"

(Doc ID 1558903.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Server - Version 5.1 to 5.6 [Release 5.1 to 5.6]
MySQL Cluster - Version 6.1 to 7.2 [Release 6.1 to 7.2]
Information in this document applies to any platform.


When attempting to replay a binary log using the mysqlbinlog utility and the --database option, the execution fails with an error like:



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms