To import a mysql database via Docker use the following command.
docker exec -i [mysql-container] mysql -u[user] -p[password] [database] < [data.sql]
Use the code below to obtain the mysql-container name.
docker ps
To import a mysql database via Docker use the following command.
docker exec -i [mysql-container] mysql -u[user] -p[password] [database] < [data.sql]
Use the code below to obtain the mysql-container name.
docker ps