Golang MySQL 二进制日志复制监听器
Pure Go Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their datas and raw SQL queries. This code has been developed and maintained by Ven at January 2015.
go get github.com/2tvenom/myreplicationThe project is test with:
It's not tested in real production situation.
go testFunctonal tests with Docker. Test statement based and row based replication. MySql versions 5.5, 5.6, 5.7.
cd tests
sudo ./test.shIn your MySQL server configuration file you need to enable replication:
[mysqld]
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog-format = row #Row based replication…暂无开放 Issues,或尚未同步最近议题。