This docker image is a MySQL client which is provided by mycli
docker run -it chaifeng/mycli
docker run -it chaifeng/mycli --version
docker run -it chaifeng/mycli -h mysqlserver -u root
docker run -it --name mycli \
-e MYSQL_DATABASE=your-dbname \
-e MYSQL_HOST=your-mysql-container \
-e MYSQL_USER=your-mysql-username \
-e MYSQL_PASSWORD="your-mysql-password" \
--network your-network \
chaifeng/mycli
MYSQL_HOST
the host/ip of your mysql databaseMYSQL_USER
the username of your mysql databaseMYSQL_PASSWORD
the password of your mysql databaseMYSQL_ROOT_PASSWORD
the root's password of your mysql databaseMYSQL_DATABASE
the database name to use