java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed code example

Example 1: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed

jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false

Example 2: java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

MYSQL DB CONNECTION ERROR

Example 3: java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

jdbc:mysql://localhost:3306/Database_dbName?allowPublicKeyRetrieval=true&useSSL=false;

Tags:

Misc Example