Skip to content

Instantly share code, notes, and snippets.

@matthewsimo
Created March 2, 2012 16:34
Show Gist options
  • Save matthewsimo/1959512 to your computer and use it in GitHub Desktop.
Save matthewsimo/1959512 to your computer and use it in GitHub Desktop.
Copy a DB to new place
sudo mysqldump -u username -p****** DBNAME | ssh remoteUser@remote.domain.url "mysql -u username -p****** DBNAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment