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

Closed
mauromol opened this issue Jun 22, 2020 · 2 comments
Labels
Milestone

Comments

@mauromol
Copy link

mauromol commented Jun 22, 2020

Which version and edition of Flyway are you using?

6.4.4

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?

Linux

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.

@juliahayward
Copy link
Contributor

It appears these issues are out of date in any case : https://mariadb.com/kb/en/about-mariadb-connector-j/ claims the Maria driver that we now ship supports all versions of MySQL higher than 5.5.3 now.

@juliahayward
Copy link
Contributor

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants