Version control for your MySQL database
Automate the deployments of your MySQL database using your SQL.
Get all the latest guides, community news, product updates, and resources
For non-JVM users and environments without build tools
$ flyway migrate -url=... -user=... -password=...Get started with the command line tool
Migrate directly from within your application
Flyway flyway = Flyway.configure().dataSource(url, user, password).load();Get started with the Java API
Seamless integration with Maven 2/3 builds
> mvn flyway:migrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...Get started with Maven 2/3 builds
Seamless integration with Gradle builds
> gradle flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...Get started with the Gradle plugin
Take your MySQL database from one version to the next using a single command. It even works with an empty database.
Use your SQL scripts as written for MySQL without any proprietary JSON, XML or other formats. Placeholder replacement ensures your queries will just work.
Add the ability to use shell scripts or Java to your database deployments to manage data migrations and more.
With a JDBC driver for your MySQL database, you’re ready for deployments.
With full support for common cloud platforms, you can deploy to where your databases are located: Amazon RDS, Google Cloud Platform, Microsoft Azure SQL Database, Heroku and more.
With a single command, you can reset the entire schema in order to make testing easier.
Validation prior to deployment ensures more protection for your MySQL databases.
You can deploy to multiple machines in parallel.
Automatically discover SQL and Java migrations with filesystem and classpath scanning.
Full support for the latest on-premises versions and cloud-based versions like Aurora MySQL.
Join the hundreds of thousands of happy Flyway users today.
"The best value for us is the traceability of who deployed what and when, and that we can deploy changes to production faster."
"Flyway is easy to use and a tool that provides you a very flexible framework to work on your database migrations in a very reliable way."