How can we help you today? How can we help you today?

Do I still need to manually configure and install a MySQL driver in Flyway 8.2.0 and later versions?

Do I still need to manually configure and install a MySQL driver in Flyway 8.2.0 and later versions? If no MySQL driver is found on the Classpath, Flyway will automatically default to the MariaDB driver. Is this correct?

As my current Flyway version is outdated, at 5.2.4, and I'm planning to upgrade to version 10.11.0, I noticed that the MySQL driver is no longer included in Flyway 10.11.0. I checked the official documentation and learned that the MySQL driver was removed in Flyway 8.2.0. Thus, I'm wondering: after upgrading Flyway, will I still need to manually configure a driver for MySQL?
liuyangtopone
0

Comments

2 comments

  • Patrick893

    Yes, you are correct. Starting from Flyway version 8.2.0, the MySQL driver is no longer included by default. Instead, if no MySQL driver is found on the classpath, Flyway will automatically use the MariaDB driver as a default option.

    https://forum.red-gate.com/discussion/90182/migration-info-table-not-displayed-from-api-using-flyway-info slope ball

    When you upgrade from Flyway 5.2.4 to 10.11.0, you will need to manually add the MySQL driver to your classpath if you want to use it instead of the MariaDB driver. If you prefer to stick with the MariaDB driver, you won't need to configure anything manually, as it will be used automatically.

    Patrick893
    0
  • liuyangtopone
    Patrick893 said:

    Yes, you are correct. Starting from Flyway version 8.2.0, the MySQL driver is no longer included by default. Instead, if no MySQL driver is found on the classpath, Flyway will automatically use the MariaDB driver as a default option.

    https://forum.red-gate.com/discussion/90182/migration-info-table-not-displayed-from-api-using-flyway-info slope ball

    When you upgrade from Flyway 5.2.4 to 10.11.0, you will need to manually add the MySQL driver to your classpath if you want to use it instead of the MariaDB driver. If you prefer to stick with the MariaDB driver, you won't need to configure anything manually, as it will be used automatically.

    thanks Patrick . it's so useful.
    liuyangtopone
    0

Add comment

Please sign in to leave a comment.