Choosing a binary log format
Choosing a binary log format is very important. The replication format can greatly be affected by this choice. Also, if the STATEMENT format is used, the developers should be aware of its important limitations.
To choose the binary log format, we can set the binlog_format variable in the configuration file or the --binlog-format startup option. If not specified, the format defaults to STATEMENT. We can also obtain the currently used format by querying the @@binlog_format server variable.
Note
The @@binlog_format variable is a dynamic variable that exists at both the global and session level. This means that it is possible to change the binary log format on the master while it is running, for all connections or only for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access