安装笔记:在CentOS上安装canal(可以在程序中读取mysql复制日志进行处理)

https://blog.csdn.net/qq_23374741/article/details/72805923

wget https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gz
mkdir /data/canal
tar zxvf canal.deployer-1.1.4.tar.gz -C /data/canal
rm -f canal.deployer-1.1.4.tar.gz
cd /data/canal

GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replication'@'%';
FLUSH PRIVILEGES;

vi conf/example/instance.properties
canal.instance.master.address

canal.instance.dbUsername=replication
canal.instance.dbPassword=密码
canal.instance.connectionCharset=UTF-8

canal.instance.filter.regex=kiddo\\.kid.*,kiddo\\.rec.*

cd /data/canal/bin
./startup.sh

然后到 logs目录下的两个目录canal和example目录下查看日志文件,如果都没有异常则表示服务启动成功
cd /data/canal/logs/

上一篇:canal 环境搭建 kafka Zookeeper安装(二)


下一篇:canal mysql select权限粒度