Skip to content

Instantly share code, notes, and snippets.

@FelipeGangrel
Created October 26, 2024 21:51
Show Gist options
  • Save FelipeGangrel/da9f689baf572812f8bc0f2565c5db22 to your computer and use it in GitHub Desktop.
Save FelipeGangrel/da9f689baf572812f8bc0f2565c5db22 to your computer and use it in GitHub Desktop.
Restore Mysql database from dump file on docker
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