Run a MySQL client from a docker container
Switch branches/tags
Nothing to show
Clone or download
Latest commit 97ea967 Sep 30, 2017
Permalink
Failed to load latest commit information.
Dockerfile feature-update alpine Sep 29, 2017
LICENSE Initial commit May 15, 2015
README.md feature-update alpine Sep 29, 2017

README.md

mysql-client

Docker Hub

Docker image with a MySQL client.

This Docker image is based on Alpine Linux .

Virtual size : 36.5 MB

From image: gliderlabs/alpine:3.1

Mysql client: Ver 15.1 Distrib 10.1.26-MariaDB

Usage

Execute SQL statements from an input SQL file:

$ docker run -v <path to sql>:/sql --link <mysql server container name>:mysql -it arey/mysql-client -h mysql -p <password> -D <database name> -e "source /sql/<your sql file>"