2
我正试图在两个表上运行liquibase diff操作。Liquibase Diff操作不产生输出文件
该操作似乎正常工作,因为我可以看到命令提示符中发生的所有比较。我唯一的问题是没有文件正在输出。这里是我的代码,我已经添加了换行符,以帮助可读性:
java -jar liquibase/liquibase.jar
--driver=com.mysql.jdbc.Driver
--classpath=/liquibase/changelog-generating/mysql-connector-java-5.1.13.jar
--changeLogFile=liquibase/local.table.changelog.xml
--url="jdbc:mysql://localhost/table1"
--username=root
--password=""
diff
--referenceUrl="jdbc:mysql://localhost/table2"
--referenceUsername=root
--referencePassword=""
当我运行没有diff和引用变量的命令,我收到一个输出文件。
- 访问数据库的工作没有密码(毕竟它只是本地主机)。
- Liquibase安装在C:/ liquibase
- 我使用的是Windows Vista中