Skip to content

Instantly share code, notes, and snippets.

@AzadGh95
Created September 7, 2021 10:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AzadGh95/5d8f30b1ad82e70e140fe5a1a4f01a1d to your computer and use it in GitHub Desktop.
Save AzadGh95/5d8f30b1ad82e70e140fe5a1a4f01a1d to your computer and use it in GitHub Desktop.
Import SQL file to docker MySQL
docker exec -i site_mysql_1 mysql -u root -p secret --init-command="set autocommit=0" dbname < ~/sample.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment