Skip to content

Instantly share code, notes, and snippets.

@nullvariable
Created August 31, 2017 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nullvariable/cadd8d05fd3b9965713cddecc8678225 to your computer and use it in GitHub Desktop.
Save nullvariable/cadd8d05fd3b9965713cddecc8678225 to your computer and use it in GitHub Desktop.
mysql import in Docker
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