Oct 18, 2016, 12:27

How to load mysql dump from local host

The main thing is to specify -i key, it allows input redirection from host to container.

docker exec -i container mysql -uuser -ppassword database < dump.sql
Share