CREATE USER canal IDENTIFIED BY 'canal'; GRANT SELECT, SHOW VIEW, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%'; -- GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ; 需要具有SHOW VIEW 权限 FLUSH PRIVILEGES;
canal安装
1 2
mkdir canal tar -zxvf canal.deployer-1.1.2.tar.gz -C ./canal
################################################# ## mysql serverId , v1.0.26+ will autoGen # canal.instance.mysql.slaveId=0
# enable gtid use true/false canal.instance.gtidon=false
# position info 需要改成自己的数据库信息 canal.instance.master.address=127.0.0.1:3306 canal.instance.master.journal.name= canal.instance.master.position= canal.instance.master.timestamp= canal.instance.master.gtid=
# table meta tsdb info canal.instance.tsdb.enable=true #canal.instance.tsdb.url=jdbc:mysql://127.0.0.1:3306/canal_tsdb #canal.instance.tsdb.dbUsername=canal #canal.instance.tsdb.dbPassword=canal