Search code examples
liquibase

Can Liquibase compare data of two of two databases with diff command using difftypes=data?


I'm a new to Liquibase. I have used the following command but is not giving expected result. Can Liquibase compare data of two of two databases?

c:\LiquiBase>liquibase --username=root --url=jdbc:mysql://localhost:3306/schema3 --driver=com.mysql.jdbc.Driver --referenceUrl=jdbc:mysql://localhost:3306/solution --referenceUsername=root --diffTypes=data diff diffChangeLog > change.xml

Solution

  • I think the problem here is that you are actually giving liquibase TWO commands (both diff and diffChangelog) and the code is using the second.