Created
October 26, 2024 21:51
-
-
Save FelipeGangrel/da9f689baf572812f8bc0f2565c5db22 to your computer and use it in GitHub Desktop.
Restore Mysql database from dump file on docker
This file contains hidden or 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 [container_name] sh -c 'exec mysql -u root -p"$MYSQL_ROOT_PASSWORD" [database_name]' < /path/to/dump.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment