14

I want to check the replication type for my master-slave setup that whether it is row based or statement based.. how can I do this? I am using mysql 5.6

1 Answer 1

19

On the master, run:

mysql> SHOW GLOBAL VARIABLES LIKE 'binlog_format';

This variable will be either ROW, STATEMENT, or MIXED.

Note that the global default doesn't preclude individual sessions from changing their binlog format, and DDL statements are always logged in STATEMENT format regardless of what binlog_format is set to.

See http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_binlog-format

2
  • I am facing some data drifting issues. Thanks to your answer, I checked that binlog_format on Master is MIXED; while on the Slave server it is showing as ROW. Is this problematic ? Nov 29, 2018 at 12:02
  • 2
    Not a problem. The slave can understand any format it receives from its master. The binlog_format on the slave only controls the format of its own binary log. Nov 29, 2018 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.