Created
September 7, 2021 10:48
-
-
Save AzadGh95/5d8f30b1ad82e70e140fe5a1a4f01a1d to your computer and use it in GitHub Desktop.
Import SQL file to docker MySQL
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 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