Go to your database connection and Right-click and select Edit Connection,
Then, go to the Driver Properties section (located next to the Main tab). Locate the property named allowPublicKeyRetrieval, which by default is false. Change this value to true.