canal 踩坑实录---这可能是你看到的最全最简单的canal教程 (2)

报下面错误

Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages Err wheezy/updates/main amd64 Packages

使用以下命令替换 后 重新安装vim命令

# 更新apt-get源 mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb stretch main contrib non-free" >/etc/apt/sources.list && \ echo "deb-src stretch main contrib non-free" >>/etc/apt/sources.list && \ echo "deb stretch-updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb-src stretch-updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb stretch/updates main contrib non-free" >>/etc/apt/sources.list && \ echo "deb-src stretch/updates main contrib non-free" >>/etc/apt/sources.list

添加以下配置

[mysqld] # 打开binlog log-bin=mysql-bin # 选择ROW(行)模式 binlog-format=ROW # 配置MySQL replaction需要定义,不要和canal的slaveId重复 server_id=1 character-set-server=utf8 [client] default-character-set=utf8 [mysql] default-character-set=utf8

然后重启mysql 容器

docker restart mysql容器

启动服务 配置好相应的文件就可以了
1.1.4 主要是mysql的配置多一些

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzdydd.html