1. Phenomenon
java.io.IOException: caching_sha2_password Auth failed
at 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 failure
2. Analysis and positioning
Since MySQL 8.0.3, the authentication plug-in uses caching by default_sha2_password
3. Solution
Solution: modify the authentication plug-in corresponding to the canal user to MySQL_native_password
mysql> select host,user,plugin from mysql.user ;
mysql> ALTER USER 'canal'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
renderings
Read More:
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- [Solved] error: password authentication failed for user “postgres”
- [Vagrant] When vagrant up, it stops at “SSH auth method: private key” and times out.
- The URL is timestamped to avoid caching problems when requesting the current path again
- [Solved] ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- [Solved] Mycat Startup Error: ERROR Startup failed: Timed out waiting for a signal from the JVM
- [Solved] JIRA startup error: JIRA startup failed, JIRA has been locked.
- [Solved] Error: The slice reducer for key “auth“ returned undefined during initialization. If the state pas
- Support for password authentication was removed on August 13, 2021
- [Solved] GitHub Error: remote: Support for password authentication was removed on August 13, 2021.
- [Solved] Elasticsearch 7.10 Startup Error: bootstrap checks failed
- [Solved] Flink jdbc Error: Access Denied for user ‘root‘@‘10.0.0.x‘ (using password: YES)
- After configuring the ES password, logstash starts with error 401?
- [Solved] ElasticSearch startup error: bootstrap checks failed
- [Solved] Elasticsearch-7.2.1 startup error: ERROR: [1] bootstrap checks failed
- [Solved] Git push Error: remote: Support for password authentication was removed on August 13, 2021.
- [Solved] Failed update hbase:meta table descriptor HBase Startup Error
- Tomcat startup error: Failed to start component [StandardServer[8005]] solution