Skip to content

Instantly share code, notes, and snippets.

@Veve2
Created July 19, 2016 14:32
Show Gist options
  • Select an option

  • Save Veve2/f73b7f57f2582d2ab5e693f7a3a3403d to your computer and use it in GitHub Desktop.

Select an option

Save Veve2/f73b7f57f2582d2ab5e693f7a3a3403d to your computer and use it in GitHub Desktop.
Sync Local and Remote MySQL Databases with a Single Command
mysqldump -u username -ppassword databasename |
ssh user@ipaddress "mysql -u root -ppassword databasename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment