Binary Logging Formats


The server uses several logging formats to record information in the binary log. The exact format employed depends on the version of MariaDB being used. There are three logging formats:

In MariaDB 5.6, the default binary logging format is STATEMENT.

The logging format can also be set or limited by the storage engine being used. This helps to eliminate issues when replicating certain statements between a master and slave which are using different storage engines.

With statement-based replication, there may be issues with replicating nondeterministic statements. In deciding whether or not a given statement is safe for statement-based replication, MariaDB determines whether it can guarantee that the statement can be replicated using statement-based logging. If MariaDB cannot make this guarantee, it marks the statement as potentially unreliable and issues the warning, Statement may not be safe to log in statement format.

You can avoid these issues by using MySQL's row-based replication instead.

Retornar