MAC/DEVELOP

[MySQL] Public Key Retrieval is not allowed 해결법

EARTH_ROOPRETELCHAM 2021. 1. 3. 22:26
728x90
반응형

MySQL connection 에러 해결법 - Public Key Retrieval is not allowed

GUI 툴로 DBeaver를 사용한다면, 아래와 같은 오류에 부딪힐 수 있다. 해당 오류 발생 시 아래 과정을 따라하면 된다.

  1. 연결하고자 하는 connection을 마우스 오른쪽 버튼으로 클릭하여 Edit Connection을 누른다.
  2. Connection settings 항목 중 Edit Driver Settings을 클릭한다.
  3. Driver Settings 중 Connection properties를 누르고 user properties 주변을 마우스 오른쪽 버튼으로 클릭하여 Add new property를 누른다.
  4. useSSL, allowPublicKeyRetrieval 속성을 추가한 후 각각 false, true로 value를 설정한다.

Public Key Retrieval is not allowed 해결법

관련 stackoverflow

stackoverflow.com/questions/50379839/connection-java-mysql-public-key-retrieval-is-not-allowed

 

Connection Java-MySql : Public Key Retrieval is not allowed

I try to connect MySql database with Java using connector 8.0.11. Everything seems to be ok but I have this exception: Exception in thread "main" java.sql.SQLNonTransientConnectionException: Pub...

stackoverflow.com

 

728x90
반응형