Where I can find MariaDB protocol document that different from MySQL

486 views Asked by At

MySQL support GTID at 5.6, MariaDB support at 10.0.2, but MariaDB is MySQL 5.5.5 compatible.

So, the GTID replication protocol is different from MySQL's replication.

Here is something that I can find out

  • GTID format is different
    • MySQL:
      • UUID SET
        • 3E11FA47-71CA-11E1-9E33-C80AA9429562:23
        • server_uuid:interval
      • GTID SET
        • uuid_set[, uuid_set] ... | ''
    • MariaDB
      • 0-3306-123
      • DomainID-ServerID-Sequence
  • How to start GTID replication
    • MySQL
      • Use COM_BINLOG_DUMP_GTID
    • MariaDB
      • SET @mariadb_slave_capability = 4;-- GTID capability
      • SET @slave_connect_state = '0-3311-90';-- GTID
      • Send REGISTER_SLAVE

But the response packet is still not the same.So, is there any document about these different ?

Reference

1

There are 1 answers

0
wener On BEST ANSWER

Finally, I find the document in code, described how.

Thanks to @zedfoxus, I found issue MDEV-26 described internal.

According to above, I implement maria GTID mode replication here