Created
August 31, 2017 15:38
-
-
Save nullvariable/cadd8d05fd3b9965713cddecc8678225 to your computer and use it in GitHub Desktop.
mysql import in Docker
This file contains hidden or 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