Skip to content
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

Document (or at least reference) known issues with MariaDB driver and MySQL server #2865

mauromol opened this issue Jun 22, 2020 · 2 comments


Copy link

mauromol commented Jun 22, 2020

Which version and edition of Flyway are you using?


Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Java API

Which database are you using (type & version)?

MySQL 5.7

Which operating system are you using?


What did you do?

Starting Spring Boot application, having MariaDB 2.6.0 driver on the classpath.

What did you expect to see?

No errors/warnings since MariaDB Connector/J 2.6.0 supports MySQL Server 5.7.0

What did you see instead?

On startup I get this warning:

2020-06-22 12:32:24.242  WARN 19434 --- [  restartedMain] o.f.c.i.d.m.MySQLDatabase                : You are connected to a MySQL 5.7 database using the MariaDB driver. This is known to cause issues. An upgrade to Oracle's MySQL JDBC driver is highly recommended.

Since MariaDB and MySQL drivers are not equivalent w.r.t. licensing, and being MariaDB 2.6.0 officially supporting MySQL 5.7, which are these known issues that I should be warned against?

I tried to look at Flyway source code where this warning is produced (org.flywaydb.core.internal.database.mysql.MySQLDatabase.ensureSupported()), but I found no mention of them. I tried to search here on GitHub and just found an old issue mentioning problems with MariaDB drivers and MySQL Server 8.0 (#2099 (comment)).
Also tried a broader search with Google but was not able to figure it out.

Thanks in advance.

Copy link

juliahayward commented Jul 15, 2020

It appears these issues are out of date in any case : claims the Maria driver that we now ship supports all versions of MySQL higher than 5.5.3 now.

Copy link

juliahayward commented Jul 15, 2020

Warning will be removed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants