# Which Tool to use for generating a Schema Diff?

**URL:** <https://www.singlestore.com/forum/t/which-tool-to-use-for-generating-a-schema-diff/2995>\
**Category:** 3rd-Party Integrations\
**Created:** [May 17, 2021, 10:38am UTC](https://www.singlestore.com/forum/t/which-tool-to-use-for-generating-a-schema-diff/2995 "2021-05-17T10:38:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![prerak](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/p/90db22/32.png) [@prerak](https://www.singlestore.com/forum/u/prerak)\
**Post date:** [May 18, 2021, 2:36pm UTC](https://www.singlestore.com/forum/t/which-tool-to-use-for-generating-a-schema-diff/2995/2 "2021-05-18T14:36:05Z")

</div>

> [@Any tool that can help compare 2 memsql database schemas and create the migration script](https://www.singlestore.com/forum/t/any-tool-that-can-help-compare-2-memsql-database-schemas-and-create-the-migration-script/2509/4):
>
> I posted this in the other thread too, but thought will post it here and it may help someone. The below tool not only finds all of the differences but produces the exact ALTER / CREATE syntax that is used by Singlestore, including the sharding, indexes, table types. The best tool I found for this, believe it or not, is the [perl mysqldiff utility](https://metacpan.org/pod/distribution/MySQL-Diff/bin/mysqldiff) (part of MySQL::Diff module). This is not to be confused with a similarly named MySQL utility. I couldn’t really find anything else that does a good jo…

---

_[View the full topic](https://www.singlestore.com/forum/t/which-tool-to-use-for-generating-a-schema-diff/2995)._
