Created
July 19, 2016 14:32
-
-
Save Veve2/f73b7f57f2582d2ab5e693f7a3a3403d to your computer and use it in GitHub Desktop.
Sync Local and Remote MySQL Databases with a Single Command
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
mysqldump -u username -ppassword databasename | | |
ssh user@ipaddress "mysql -u root -ppassword databasename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment