From c19a5834dc3702106180b032a5e2a8a5e180b4da Mon Sep 17 00:00:00 2001 From: Ahad Khan <73303850+luciusfox9@users.noreply.github.com> Date: Thu, 15 Aug 2024 04:32:20 +0530 Subject: [PATCH] fix: allow public key retrieval for MySQL connection Added `allowPublicKeyRetrieval=true` to the MySQL connection URL in `application.properties` to resolve the "Public Key Retrieval is not allowed" error. By default, this property is set to `false`. --- src/main/resources/application-dev.properties | 2 +- src/main/resources/application-qa.properties | 2 +- src/main/resources/application.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 56932535..40be6db8 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,4 +1,4 @@ -spring.datasource.url = jdbc:mysql://localhost:3306/myblog?useSSL=false&serverTimezone=UTC +spring.datasource.url = jdbc:mysql://localhost:3306/myblog?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC spring.datasource.username = root spring.datasource.password = root diff --git a/src/main/resources/application-qa.properties b/src/main/resources/application-qa.properties index 56932535..40be6db8 100644 --- a/src/main/resources/application-qa.properties +++ b/src/main/resources/application-qa.properties @@ -1,4 +1,4 @@ -spring.datasource.url = jdbc:mysql://localhost:3306/myblog?useSSL=false&serverTimezone=UTC +spring.datasource.url = jdbc:mysql://localhost:3306/myblog?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC spring.datasource.username = root spring.datasource.password = root diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 83ca3b97..4c77398b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.datasource.url = jdbc:mysql://localhost:3306/myblog?useSSL=false&serverTimezone=UTC +spring.datasource.url = jdbc:mysql://localhost:3306/myblog?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC spring.datasource.username = root spring.datasource.password = Mysql@123