canal安装与使用

安装

alpha的版本不是稳定的版本

wget https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gz

mkdir -p /opt/serivce/canal_1.1.4

tar -xvf canal.deployer-1.1.4.tar.gz -C  /opt/serivce/canal_1.1.4

$ ll /opt/serivce/canal_1.1.4/

total 24

drwxr-xr-x 6 tan tan 4096 1月   9 09:00 ./

drwxr-xr-x 3 tan tan 4096 1月   9 08:59 ../

drwxr-xr-x 2 tan tan 4096 1月   9 09:00 bin/

drwxr-xr-x 5 tan tan 4096 1月   9 09:00 conf/

drwxr-xr-x 2 tan tan 4096 1月   9 09:00 lib/

drwxr-xr-x 2 tan tan 4096 9月   2 15:26 logs/

 

mysql账户配置

------------------------------------------------------------

 

源端
create user canal@'%' identified by 'rootroot';
grant select,replication slave,replication client on *.* to canal@'%';

 

目标端
create user canal@'%' identified by 'rootroot';

 

grant all privileges on *.* to canal@'%';

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, REFERENCES, INDEX, ALTER, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO canal@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

 

你可能感兴趣的:(canal安装与使用)