一节课解密阿里巴巴canal

https://www.bilibili.com/video/BV1qJ411H7Pz?p=4open in new window

1第一步

mysql.cnf 或者my.cnf

#config canal

log-bin=mysql-bin

binlog-format=Row

server_id=1




2第二步

登录mysql

image

create user canal identified by 'canal';

grant select,replication slave,replication client on *.* to 'canal'@'%';

flush privileges;

wget https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gzopen in new window

tar -zxvf canal.deployer-1.1.4.tar.gz -C /usr/local/canal.deployer-1.1.4

Last Updated:
Contributors: 刘荣杰