Answers for "docker run sql script"

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
-3

run sql server in docker

# Run container
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest

# Connect to container
docker exec -it [id] /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "<YourStrong@Passw0rd>"
Posted by: Guest on September-23-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language