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

MySQL Driver 5.1.x support #2171

Closed
gregorko opened this issue Oct 12, 2018 · 1 comment
Closed

MySQL Driver 5.1.x support #2171

gregorko opened this issue Oct 12, 2018 · 1 comment

Comments

@gregorko
Copy link

Which version and edition of Flyway are you using?

5.2.0

What did you do?

When running a Gradle task Flyway tries to use the driver com.mysql.cj.jdbc.Driver and fails to find it:
Unable to instantiate JDBC driver: com.mysql.cj.jdbc.Driver => Check whether the jar file is present

This is caused because the used 5.1.47 driver (released 2018-08-17, supporting MySQL Server versions 5.5, 5.6, 5.7, and 8.0, JDBC 4.2) does not use this driver class but instead is using com.mysql.jdbc.Driver
This used to work before with Flyway 5.1 and 5.0.

Since the MySQL drivers 6.0 and 8.0 still have some substantial bugs which are fixed in 5.1 it would be nice if the 5.1 driver could still be supported.

@axelfontaine axelfontaine added this to the Flyway 5.2.1 milestone Oct 15, 2018
@axelfontaine axelfontaine changed the title MySql Driver 5.1.x not supported anymore? MySQL Driver 5.1.x support Oct 15, 2018
axelfontaine pushed a commit to flyway/flywaydb.org that referenced this issue Oct 15, 2018
@axelfontaine
Copy link
Contributor

Good point. Even though you could always manually override the driver class, we have now added the old class as an automatic fallback.

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants