Execute a command from host to docker using terminal
Import Mysql Dump in container
Last updated
Import Mysql Dump in container
Last updated
Sometimes you just want to import your own MySQL backup file.
This can be done in a very easy way, even without bind-mounting or copying the file into the container. It also does not have to do with dockware, so it would also work in a plain MySQL container.
Run this command, and it will automatically import the backup.sql file from your database folder into your MySQL instance.