zoukankan      html  css  js  c++  java
  • 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;

  • 相关阅读:
    继承 多态
    封装练习
    PHP 面向对象封装
    面向对象 类和对象
    PHP前端和数据库的连接
    数组2
    PHP数组
    正则表达式
    PHP字符串
    linux基础
  • 原文地址:https://www.cnblogs.com/perfei/p/12169564.html
Copyright © 2011-2022 走看看