2019-01-28 11:03:23.988 [destination = example , address = xxxxxx.mysql.database.azure.com/10.10.10.10:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[com.alibaba.otter.canal.parse.exception.CanalParseException: java.io.IOException: connect xxxxxx.mysql.database.azure.com/10.10.10.10:3306 failure Caused by: java.io.IOException: connect xxxxxx.mysql.database.azure.com/10.10.10.10:3306 failure at com.alibaba.otter.canal.parse.driver.mysql.MysqlConnector.connect(MysqlConnector.java:77) at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.connect(MysqlConnection.java:88) at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.preDump(MysqlEventParser.java:86) at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$3.run(AbstractEventParser.java:175) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Error When doing Client Authentication:ErrorPacket [errorNumber=9002, fieldCount=-1, message=The connection string may not be right. Please visit portal for references. , sqlState=28000, sqlStateMarker=#] at com.alibaba.otter.canal.parse.driver.mysql.MysqlConnector.negotiate(MysqlConnector.java:199) at com.alibaba.otter.canal.parse.driver.mysql.MysqlConnector.connect(MysqlConnector.java:74) ... 4 more ]
原提问者GitHub用户Robinbin
message=The connection string may not be right. Please visit portal for references
原回答者GitHub用户agapple
是的,Canal支持Azure Database for MySQL的binlog订阅。你只需要将Azure Database for MySQL的binlog连接信息配置到Canal的配置文件中即可。具体的步骤可以参考Canal官方文档中的说明。需要注意的是,Azure Database for MySQL的binlog格式必须是ROW格式,否则无法正常使用Canal进行订阅和解析。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。