Forked from nullvariable/gist:cadd8d05fd3b9965713cddecc8678225
Created
August 8, 2018 11:09
-
-
Save petrozavodsky/9f549c1deb661b6760413575374edd05 to your computer and use it in GitHub Desktop.
mysql import in Docker
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
docker cp <dbfile.sql> <container>:/tmp/import.sql | |
docker exec -it <container> /bin/bash | |
mysql -u <user> -p <database name> < import.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment