Last active
April 12, 2016 13:40
-
-
Save hugsbrugs/f479e57e9d9b4b5eda69c92b9c50c5ba to your computer and use it in GitHub Desktop.
Compare Mysql database
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
# Export first database | |
mysqldump --skip-comments --skip-extended-insert -u root -p database_1>file1.sql | |
# Export second database | |
mysqldump --skip-comments --skip-extended-insert -u root -p database_2>file2.sql | |
# Display differences between files | |
diff file1.sql file2.sql | |
# Ressource | |
http://www.mysqldiff.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment