开发者社区> 问答> 正文

连接远端数据库时报 qlstate = HY000 errmsg = dispatch comman

连接本地库时正常,切换成远程库时报一下错误:

2022-10-10 13:31:55.330 [destination = example , address = /xxx.xxx.xxx.xxx:3306 , EventParser] ERROR c.a.o.canal.parse.inbound.mysql.dbsync.DirectLogFetcher - I/O error while reading from client socket java.io.IOException: Received error packet: errno = 1105, sqlstate = HY000 errmsg = dispatch command 18 not supported now, connection id[6247797] user[xxxxx] addr[111.xxx.xx.107:56398] db[xxxxx] at com.alibaba.otter.canal.parse.inbound.mysql.dbsync.DirectLogFetcher.fetch(DirectLogFetcher.java:102) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.seek(MysqlConnection.java:150) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findAsPerTimestampInSpecificLogFile(MysqlEventParser.java:767) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findByStartTimeStamp(MysqlEventParser.java:597) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findStartPositionInternal(MysqlEventParser.java:519) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findStartPosition(MysqlEventParser.java:358) ~[canal.parse-1.1.6.jar:na] at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:191) ~[canal.parse-1.1.6.jar:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

原提问者GitHub用户CockyCat

展开
收起
白夜行fighting 2023-04-25 20:30:05 141 0
1 条回答
写回答
取消 提交回答
  • 你链接的是官方mysql么?command 18就是COM_BINLOG_DUMP,代表这个实例不支持binlog dump

    原回答者GitHub用户agapple

    2023-04-26 17:17:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
DTCC 2022大会集锦《云原生一站式数据库技术与实践》 立即下载
阿里云瑶池数据库精要2022版 立即下载
2022 DTCC-阿里云一站式数据库上云最佳实践 立即下载