Use maxwell real-time synchronization of mysql binlog log, host data stored on mysql8, when maxwell start error: Could not Connect to jdbc: mysql: // XXX249:? 3306 connectTimeout = 5000 & zeroDateTimeBehavior = convertToNull & useSSL = false & characterEncoding = UTF-8 & tinyInt1isBit = false: Public Key Retrieval is not alloweds
Official website explained: https://mysql-net.github.io/MySqlConnector/connection-options/
Online explains the need to add: allowPublicKeyRetrieval = true
In maxwell latest version (1.22) of the official website for a long time did not find the relevant parameters, and then add the following file in MaxwellMysqlConfig.java
this.jdbcOptions.put("allowPublicKeyRetrieval", "true");
Start again OK!