alibaba / canal

阿里巴巴 MySQL binlog 增量订阅&消费组件
Apache License 2.0
28.5k stars 7.62k forks source link

canal-adapter 连接mysql8 报错 #2192

Open miaoyp opened 5 years ago

miaoyp commented 5 years ago

image

miaoyp commented 5 years ago

canal-adapter 连接mysql8 报错

miaoyp commented 5 years ago

ERROR com.alibaba.druid.pool.DruidDataSource - init datasource error, url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true

miaoyp commented 5 years ago

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server

agapple commented 5 years ago

driver不支持8.0,可以考虑提交一个MR

CosmoYhh commented 4 years ago

如果是canal-adapter-1.1.5之前的版本 把 lib下mysql驱动包换成5.1系列的最后一个版本:mysql-connector-java-5.1.47.jar

iamzxj commented 4 years ago

把 lib下mysql驱动包换成8系列,修

改canal-admin-server-1.1.4.jar mysql依赖项,可以正常启动。 2020-09-17_163554