flyway命令行执行
2019-10-10 本文已影响0人
怀旧的艾克
下载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