I have 2 MySQL dump files. I want to find the table data difference between 2 tables.
Getting data differences of two MySQL databasesClick New.. on the product Start Page or New Data Comparison on the Standard toolbar to open New Data Comparison Wizard. Specify the needed connections to MySQL servers in the Connection fields. Select the databases you want to compare in the Database fields.
Then the dump will be in the file backup-file. sql in the current directory. If you don't redirect then the output will just be displayed to the screen, not saved to a file.
run mysqldump with "--skip-opt" to get the 2 dumps files i.e:
mysqldump --skip-opt -u $MY_USER -p$MY_PASS mydb1 > /tmp/dump1.sql mysqldump --skip-opt -u $MY_USER -p$MY_PASS mydb2 > /tmp/dump2.sql
compare using these diff options:
diff -y --suppress-common-lines /tmp/dump1 /tmp/dump2
Use a DIFF tool - here are some graphical ones (both are free):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With