Skip to content

Instantly share code, notes, and snippets.

@nesymno
Created October 21, 2020 05:48
Show Gist options
  • Save nesymno/0cf1ea74ffbd7f8e74f94f51ae187676 to your computer and use it in GitHub Desktop.
Save nesymno/0cf1ea74ffbd7f8e74f94f51ae187676 to your computer and use it in GitHub Desktop.
Import SQL to Docker container
sudo docker exec -i container_name_or_id mysql -h 127.0.0.1 -P 3306 -uroot -proot dbName < dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment