Hello everyone,
I would like to get the difference between two tables from databases located on different servers and get SQL statements to update the oldest database. That includes the data, and the structure. It is MySQL database.
At the end, I will do a difference between two schemas, procedures,…, not just the tables.
I have struggled to arrive at this point : I can generate a changelog from the two database, but only about the structure, unfortunately without the data change.
- java -jar liquibase.jar --driver=com.mysql.jdbc.Driver </li>
- --classpath=mysql-connector-java-5.1.17-bin.jar </li>
- --changeLogFile=db.ExAmPlechangelog.xml </li>
- --url=“jdbc:mysql://801.010.150:87” </li>
- --defaultSchemaName=test1 </li>
- --username=root </li>
- --password=password </li>
- diffChangeLog </li>
- --referenceUrl=“jdbc:mysql://localhost:87” </li>
- --referenceUsername=root </li>
- --referencePassword=password </li>
- --referenceDefaultSchemaName=test2
So, what is the parameter to also have the data change ?
And what is the command to translate the changelog into SQL queries ?
Thanks in advance,
Regards,
Cedric