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中