flyway命令行执行

下载flyway

wget https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/6.0.6/flyway-commandline-6.0.6.tar.gz
tar zxvf flyway-commandline-6.0.6.tar.gz

修改conf/flyway.conf文件

flyway.url=jdbc:mysql://172.27.128.187:3306/mydatabase
flyway.user=root
flyway.password=root

执行flyway命令

cd flyway-6.0.6/
./flyway -locations=filesystem:/Users/www/Documents/db migrate

你可能感兴趣的:(flyway命令行执行)