Last active
July 15, 2018 16:48
-
-
Save mikesmullin/2479918 to your computer and use it in GitHub Desktop.
Import remote MySQL database by streaming a compressed dump over SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh REMOTE-SERVER.COM "mysqldump -uroot -p REMOTE_DB | gzip -c" | gunzip | mysql -uroot LOCAL_DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment