Canal 1.1.5 启动报错:caching_sha2_password Auth failed
生活随笔
收集整理的這篇文章主要介紹了
Canal 1.1.5 启动报错:caching_sha2_password Auth failed
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 1. 現象
- 2. 分析定位
- 3. 解決方案
- 效果圖
1. 現象
java.io.IOException: caching_sha2_password Auth failedat com.alibaba.otter.canal.parse.driver.mysql.MysqlConnector.negotiate(MysqlConnector.java:260) ~[canal.parse.driver-1.1.5.jar:na]at com.alibaba.otter.canal.parse.driver.mysql.MysqlConnector.connect(MysqlConnector.java:82) ~[canal.parse.driver-1.1.5.jar:na]... 4 common frames omitted 2021-11-20 16:43:40.852 [destination = example , address = /127.0.0.1:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[com.alibaba.otter.canal.parse.exception.CanalParseException: java.io.IOException: connect /127.0.0.1:3306 failure2. 分析定位
自MySQL 8.0.3開始,身份驗證插件默認使用caching_sha2_password
3. 解決方案
解決:修改canal用戶對應的身份驗證插件為mysql_native_password
mysql> select host,user,plugin from mysql.user ; mysql> ALTER USER 'canal'@'%' IDENTIFIED WITH mysql_native_password BY 'password';效果圖
總結
以上是生活随笔為你收集整理的Canal 1.1.5 启动报错:caching_sha2_password Auth failed的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: NullPointerException
- 下一篇: webxml attribute is