When using MySqlConnector to link databases in Spring Boot app, you sometimes get an error message:
“com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed.”
This information refers to the address of the RSA public key that is not set on the client. An easy way to solve this problem is to add to the link string: allowPublicKeyRetrieval=true, which is to allow the client to obtain a RAS certificate from the server.
For detailed information, please refer to Official Documentation。