开启监听的问题

来源:9-13 【多做总结与思考】启动对 Binlog 的监听

慕容勇琪

2021-01-30

我之前的数据库放在了虚拟机上,之后搬到了本地,搬过来之后就
Exception in thread “main” com.github.shyiko.mysql.binlog.network.AuthenticationException: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at com.github.shyiko.mysql.binlog.BinaryLogClient.authenticate(BinaryLogClient.java:702)
at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:494)
at com.tommao.ad.service.BinlogServiceTest.main(BinlogServiceTest.java:41)
然后就是search 服务的启动,没有调用到binlogRunner这个类
老师这个是属于我搬数据库之后的问题吗

写回答

1回答

张勤一

2021-01-31

同学你好:

    其实从报错可以看出,是代码在连接  MySQL 时出错了,看着一句:Client does not support authentication protocol requested by server; consider upgrading MySQL client,原因已经很明显了,是因为你使用的 MySQL 与代码里面的依赖版本不匹配造成的。如果不知道这里面的匹配关系,直接使用我给出的,或者是查一查应该使用哪个版本(网络上类似的博客很多很多)。

    如果还是解决不了问题,加下 QQ 群,在群里详细的说下吧。


    我是勤一,欢迎随时找我!


1
0

Spring Cloud微服务架构 设计实现广告系统

广告营销系统,未来大中型企业的标配

2136 学习 · 927 问题

查看课程