-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting unsupported error with correct versions? #2481
Comments
we experience the same issue with builds using travis ci. |
On https://flywaydb.org/documentation/database/mariadb the format of url is |
I've managed to reproduce this. As @pzygielo suggested the problem is that you're using a MySQL JDBC url instead of a MariaDB one. If you use I can't see a reason why we'd need to support such interchangeability. Is there an advantage to using the MySQL JDBC url? |
in our case, our product leaves the choice of database (mysql or mariadb) to the user/client. and since mariadb is supposed to be a drop-in replacement with some limitations and since mariadb connector/j itself allows both usages moreover, this was working with flyway 5.2.4 but stopped with 6.0.0 even though mariadb version we use (10.2.26) did not change. mariadb 10.2.26 is for sure newer than mariadb 5.5. therefore the report is not true. |
Fair point! This is due to slightly odd behavior in the way JDBC reports Maria DB versions. We've introduced a fix that should be in the next release. |
thanks! as i understand from the commit, the version identification is corrected, which means we can continue using the prefix |
Yes you can continue using that url. |
as established in flyway/flyway#2481, flyway supports both "jdbc:mysql" and "jdbc:mariadb" prefixes in database URLs.
Could you please guide me here: https://stackoverflow.com/questions/61558150/caused-byorg-flywaydb-core-internal-license-flywayeditionupgraderequiredexcepti ? |
This restriction is no longer in place from Flyway version 10 (October 2023). We have updated Flyway so that it works with ALL supported database versions, so if you upgrade to version 10 you can access all supported versions of MariaDB. The community version of Flyway now works with All versions of MariaDB. You can access the latest download from https://www.red-gate.com/products/flyway/community/download/ |
Which version and edition of Flyway are you using?
6.0.0 Community Edition
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
CLI
Which database are you using (type & version)?
MariaDB (ver. 10.2.20)
Which operating system are you using?
Windows 10 Pro 1809
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
flyway migrate -url=jdbc:mysql://127.0.0.1/hmvc_listing?serverTimezone=UTC -user=xxx -password=xxx -table=xxx -locations=xxx -sqlMigrationSeparator=- -baselineOnMigrate=true -baselineVersion=000 -sqlMigrationPrefix='.
What did you expect to see?
Successful migration.
What did you see instead?
ERROR: Flyway Enterprise Edition or MariaDB upgrade required: MariaDB 5.5 is no longer supported by Flyway Community Edition, but still supported by Flyway Enterprise Edition.
The text was updated successfully, but these errors were encountered: