Skip to content

Commit

Permalink
Add allowPublicKeyRetrieval=true to Flyway mysql URL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cazfi committed Nov 1, 2021
1 parent d8bd908 commit a17b624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/flyway.tmpl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a17b624

Please sign in to comment.