./main.sh
#在主库插入数据
mysql -h 127.0.0.1 -u root -proot -P 3306 -e "INSERT INTO mytest.user ( id , name ) values (1, 'felix');"
#在从库检查数据
mysql -h 127.0.0.1 -u root -proot -P 3307 -e "select * from mytest.user"
https://github.com/alibaba/canal/wiki/Sync-RDB
https://github.com/alibaba/canal/wiki/ClientAdapter
- ClientAdapt RDB 无法同步DDL
https://github.com/alibaba/canal/releases/download/canal-1.1.5-alpha-2/canal.adapter-1.1.5-SNAPSHOT.tar.gz https://github.com/alibaba/canal/releases/download/canal-1.1.5-alpha-2/canal.deployer-1.1.5-SNAPSHOT.tar.gz
https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gz https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.adapter-1.1.4.tar.gz