Skip to content

Instantly share code, notes, and snippets.

@benlumley
Created October 7, 2011 13:45
Show Gist options
  • Save benlumley/1270317 to your computer and use it in GitHub Desktop.
Save benlumley/1270317 to your computer and use it in GitHub Desktop.
mysqldump over ssh
sudo ssh -p port -C u@h mysqldump -u mysqlu --password=mysqlp dbname | mysql -u mu dbname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment