Mysql binlog migration tool
server_id=1
log_bin=mysql-bin
binlog-format=ROW
character_set_server=utf8
BinlogClient binlogClient = new BinlogClient("localhost", 3306, "canal", "canal", 2, "mysql-bin.000001", 4);
binlogClient.setListener(new EventListener() {
@Override
public void onEentry(Entry entry) {
System.out.println(entry);
}
});
binlogClient.start();