Answers for "docker mysql execute sql file"

SQL
1

launch sql script from docker in mysql

docker exec <container_id> /bin/sh -c 'mysql -u root -ppassword </dummy.sql'
Posted by: Guest on October-07-2020
0

docker run mysql

$ docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
Posted by: Guest on June-12-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language