汇合jdbcsinkconnector无法连接到mysql

nfs0ujit  于 2021-06-04  发布在  Kafka
关注(0)|答案(0)|浏览(196)

我在dockerwsl2上运行kafka,我有test02主题,并尝试在mysql数据库上接收该主题。我已经为用户配置了用户和特权。之后,我配置kafka connect将主题下沉到mysql。可怜的我,我得到了如下错误:

[2020-10-01 08:53:59,528] INFO Attempting to open connection #1 to MySql (io.confluent.connect.jdbc.util.CachedConnectionProvider)
[2020-10-01 08:53:59,532] INFO Unable to connect to database on attempt 1/3. Will retry in 10000 ms. (io.confluent.connect.jdbc.util.CachedConnectionProvider)
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

有人能帮我把这个连接好吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题