Public | Automated Build

Last pushed: 2 years ago
Short Description
A lightweight docker container to provide a mysql client (Alpine)
Full Description


Your best MySQL Command-Line Tools in Docker

Image size: 35 MB

From image: alpine:3.4

Mysql client: 10.1.14-r3


* 3.4
* latest


* mysql — The MySQL Command-Line Tool
* mysqladmin — Client for Administering a MySQL Server
* mysqlcheck — A Table Maintenance Program
* mysqldump — A Database Backup Program
* mysqlimport — A Data Import Program
* mysqlpump — A Database Backup Program
* mysqlsh — The MySQL Shell
* mysqlshow — Display Database, Table, and Column Information
* mysqlslap — Load Emulation Client


mysql (quick ref)

$ docker run --rm \
  sami/mysql-client \
  mysql --user=root --password=12345 --database=test --execute='show tables;'

mysqldump (quick ref)

docker run --rm \
          -v /tmp/exports:/data \
          sami/mysql-client mysqldump \
          db_name --result-file=backup.sql

More tools (see the list above)

docker run --rm sami/mysql-client <TOOL> --version

Reference Manual

Docker Pull Command
Source Repository