Dockerfile linksuse mysql client to execute sql files.
docker run --rm -e MYSQL_HOST=10.100.206.6 -e MYSQL_PORT=3306 -e MYSQL_USER=root -e MYSQL_PASSWD=123456 -e MYSQL_DB=test -e SQL_FILES="/tmp/1.sql /tmp/2.sql" -v /tmp/1.sql:/tmp/1.sql -v /tmp/2.sql:/tmp/2.sql ygqygq2/mysql-exec-sql:latest
Issue name: mysql-exec-sql:tag
body:
BASE_IMAGE=mariadb:11.0
Content type
Image
Digest
sha256:54f30def1…
Size
165.7 MB
Last updated
over 2 years ago
docker pull ygqygq2/mysql-exec-sql