
mysql开启binlog日志
mysql5.7创建一个用户,并授权:
-- 使用命令登录:mysql -u root -p
-- 创建用户 用户名:canal 密码:Canal@123456
create user 'canal'@'%' identified by 'Canal@123456';
-- 授权 *.*表示所有库
grant SELECT, REPLICATION SLAVE, REPLICATION CLIENT on *.* to 'canal'@'%' identified by 'Canal@123456';
解压canal.deployer-1.1.4.tar.gz

接着打开配置文件conf/example/instance.properties
# 修改配置文件
canal.instance.mysql.slaveId=1234
canal.instance.master.address=192.168.153.71:3306
canal.instance.dbUsername=root
canal.instance.dbPassword=123456