Created
January 18, 2012 17:13
-
-
Save robjmills/1634171 to your computer and use it in GitHub Desktop.
Compare schema of local database to remote/staging/production db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -biy --suppress-common-lines <(mysqldump -d --no-data --compatible=no_table_options --compact local_db) <(ssh root@REMOTE.IP.ADDRESS 'mysqldump -d --no-data --compatible=no_table_options --compact remote_db') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment