Skip to content

Instantly share code, notes, and snippets.

@zburgermeiszter
Created April 7, 2016 12:55
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zburgermeiszter/89a41467c80327c0bb550a2c7077d747 to your computer and use it in GitHub Desktop.
Save zburgermeiszter/89a41467c80327c0bb550a2c7077d747 to your computer and use it in GitHub Desktop.
Import sql file to MariaDB in Docker
docker exec -i CONTAINER_ID /bin/bash -c "export TERM=xterm && mysql -proot -uroot database" < import.sql
@pwellingelastique
Copy link

This worked for me. Thanks!

@ba0f3
Copy link

ba0f3 commented Feb 5, 2018

perfect, thanks!

@glasscat82
Copy link

Thanks! Its worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment