最新搞同步的時候出現了各種問題。
1.could not find first log file name in binary ...
2. can not find start position for canal
3.
出現上述問題。一般是mysql bin-log被清除了或者binlog定位不準确
處理辦法
1.清除pipline的定位點 删除position.
2.檢視主資料庫的binlog資訊
(1) 主資料庫 show master status;
(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 正确了
5 檢視從資料庫的binlog資訊
show master status;
3 在Otter頁面的Canal管理裡面。勾選自定義設定的位點資訊
這樣下來定位資訊應該就沒有問題啦。
啟動channel測試下。正常運作