tags:

views:

160

answers:

4

i need good open source tool for comparing two databases schema in Mysql

A: 

Export everything into a .sql file (those are pure text)

Then use a normal text diff program like kdiff3, meld or kompare.

Johan
This kind of diff'ing is completely incomprehensible. I know this from experience.
tarasm
depends, sometimes it is useful some it's not... I prefer to have as many tools as possible in my toolbox thou...
Johan
+4  A: 

You can use mysqldump with the --no-data option, save the output to a file for each DB, then diff the output using your preferred text diff tool.

Other options:

Pete TerMaat
+1  A: 

Try http://liquibase.org/.

UPDATE:
Here's how you do diff with liquibase: http://liquibase.org/manual/diff

artemb
+1 - Didn't know that LiquiBase had a diff tool
BengtBe
A: 

Try mysql-diff: http://bitbucket.org/stepancheg/mysql-diff/ . It is command-line, and it can extract schema info from database or from SQL script file.

stepancheg