Skip to content

Instantly share code, notes, and snippets.

@klebervirgilio
Created February 8, 2013 08:16
Show Gist options
  • Save klebervirgilio/4737410 to your computer and use it in GitHub Desktop.
Save klebervirgilio/4737410 to your computer and use it in GitHub Desktop.
Load a mysql database to a local database.
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