天天看点

Mysql Otter could not find first log file name in binary ...

最新搞同步的时候出现了各种问题。

1.could not find first log file name in binary ...

2. can not find start position for canal

3. 

Mysql Otter could not find first log file name in binary ...

出现上述问题。一般是mysql bin-log被清除了或者binlog定位不准确

处理办法

1.清除pipline的定位点 删除position.

Mysql Otter could not find first log file name in binary ...

2.查看主数据库的binlog信息

  (1) 主数据库 show master status;

Mysql Otter could not find first log file name in binary ...

(2) 从数据库操作

      1 slave stop;

      2 CHANGE MASTER TO MASTER_HOST = '主数据库ip', MASTER_USER = '用户', MASTER_PASSWORD = '密码', MASTER_LOG_FILE='mysql-bin.000058', MASTER_LOG_POS=43663710;

      3.slave start;

      4. 这个时候命令 show slave status \G 能看到Master_Log_File 正确了

Mysql Otter could not find first log file name in binary ...

        5 查看从数据库的binlog信息

             show master status;

Mysql Otter could not find first log file name in binary ...

3 在Otter页面的Canal管理里面。勾选自定义设置的位点信息

Mysql Otter could not find first log file name in binary ...

这样下来定位信息应该就没有问题啦。

启动channel测试下。正常运行

继续阅读