Skip to content

Instantly share code, notes, and snippets.

@robjmills
Created January 18, 2012 17:13
Show Gist options
  • Save robjmills/1634171 to your computer and use it in GitHub Desktop.
Save robjmills/1634171 to your computer and use it in GitHub Desktop.
Compare schema of local database to remote/staging/production db
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