Skip to content

Instantly share code, notes, and snippets.

@urbels
Created December 4, 2013 09:42
Show Gist options
  • Save urbels/7784905 to your computer and use it in GitHub Desktop.
Save urbels/7784905 to your computer and use it in GitHub Desktop.
migrate mysql from one server to another with ssh
mysqldump -u root -pPASSWORD. --all-databases | ssh user@newhost.com 'cat - | mysql -u root -pPASSWORD'
after this run flush privileges;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment