How do I see the differences between 2 MySQL dumps?

后端 未结 6 894
既然无缘
既然无缘 2020-12-29 21:19

I have 2 MySQL dump files. I want to find the table data difference between 2 tables.

6条回答
  •  萌比男神i
    2020-12-29 21:55

    In order to compare 2 mysql diffs they need to be done in a certain manner, so that the order is in a defined way and non relevant data is omitted.

    This was at one point not totally possible with mysqldump, I am not sure if this has changed in the meantime.

    One good tool for the job is pydumpy https://code.google.com/p/pydumpy/ (mirror: https://github.com/miebach/pydumpy)

    If you want to compare to an old dump, like in the question, you could first create a temporary database from the dump and then start there.

提交回复
热议问题