flyway migrate 수행 시 아래와 같은 오류가 발생하는 경우

jdbc Url 뒤에 ‘allowPublicKeyRetrieval=true&useSSL=false 를 붙여주면 됩니다.

 

SQL State  : S1009
Error Code : 0
Message    : Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : RSA public key is not available client side (option serverRsaPublicKeyFile not set)

Caused by: java.sql.SQLTransientConnectionException: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : RSA public key is not available client side (option serverRsaPublicKeyFile not set)
Caused by: java.sql.SQLException: RSA public key is not available client side (option serverRsaPublicKeyFile not set)

 

flyway.url=jdbc:mysql://127.0.0.1:3306/database_name?allowPublicKeyRetrieval=true&useSSL=false

+ Recent posts