Difference between revisions of "MariaDB Binary Log Formats"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://mariadb.com/kb/en/binary-log-formats/
 
https://mariadb.com/kb/en/binary-log-formats/
  
 +
* Mixed Logging: <code>[[MIXED]]</code>(default)
 
* Statement-Based Logging: <code>[[STATEMENT]]</code> (Default until [[MariaDB 10.2.3]], [https://mariadb.org/download/?t=mariadb&o=true&p=mariadb&r=10.2.3 2016])
 
* Statement-Based Logging: <code>[[STATEMENT]]</code> (Default until [[MariaDB 10.2.3]], [https://mariadb.org/download/?t=mariadb&o=true&p=mariadb&r=10.2.3 2016])
* Row-Based Logging: <code>[[ROW]]</code> (default)
+
* Row-Based Logging: <code>[[ROW]]</code> <code>[[SET GLOBAL binlog_format]]='ROW';</code> or [[binlog_format=ROW]] in config file
* Mixed Logging: <code>[[MIXED]]</code>
+
 
 +
Configuration:
 +
* <code>[[/etc/mysql/mariadb.conf.d/50-server.cnf]]</code>
 +
 
 +
 
  
 
== Related ==
 
== Related ==
 
* [[MariaDB binary log]]
 
* [[MariaDB binary log]]
* [[/etc/mysql/mariadb.conf.d/50-server.cnf]]
+
* <code>[[binlog_format]]</code>
* [[binlog_format]]
 
 
* mysql -e "SHOW VARIABLES;" | grep [[binlog_format]]
 
* mysql -e "SHOW VARIABLES;" | grep [[binlog_format]]
 
* <code>(Warning) Unsafe statement written to the binary log using statement format since BINLOG FORMAT = STATEMENT</code>
 
* <code>(Warning) Unsafe statement written to the binary log using statement format since BINLOG FORMAT = STATEMENT</code>
 +
* [[mariadb --version]]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:36, 18 December 2024

Advertising: