Created
February 8, 2013 08:16
-
-
Save klebervirgilio/4737410 to your computer and use it in GitHub Desktop.
Load a mysql database to a local database.
This file contains hidden or 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
function load_remote_mysql_data{ | |
ssh '$user@$server' mysqldump $mrdb -u$mru -p$mrp | mysql $mldb -u$mlu -p$mlp | |
echo 'done!' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment