From a17b6244187a4ac49ae55ee3b456841976216909 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 30 Oct 2021 23:16:49 +0300 Subject: [PATCH] Add allowPublicKeyRetrieval=true to Flyway mysql URL This fixes the following error when building with Flyway 4.0.3 of Ubuntu-20.04 (Focal): [ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.3:migrate (default-cli) on project freeciv-web: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost:3306/freeciv_web?useSSL=false&serverTimezone=UTC) for user 'docker': Signed-off-by: Marko Lindqvist --- config/flyway.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/flyway.tmpl b/config/flyway.tmpl index 7ce60ddbb..2f5d8f18a 100644 --- a/config/flyway.tmpl +++ b/config/flyway.tmpl @@ -1,4 +1,4 @@ # LOCATION:freeciv-web/flyway.properties flyway.user=#DB_USER# flyway.password=#DB_PASSWORD# -flyway.url=jdbc:mysql://localhost:3306/#DB_NAME#?useSSL=false&serverTimezone=UTC +flyway.url=jdbc:mysql://localhost:3306/#DB_NAME#?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC