HUB
Sign inSign up

sami/mysql-client

By sami

•Updated over 10 years ago

A lightweight docker container to provide a mysql client (Alpine)

Image
1

50K+

sami/mysql-client repository overview

⁠docker-mysql-client

Your best MySQL Command-Line Tools in Docker

Image size: 35 MB

From image: alpine:3.4

Mysql client: 10.1.14-r3

⁠Tags

* 3.4
* latest

⁠Tools

* 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

⁠Usage

mysql (quick ref⁠)

$ docker run --rm \
  sami/mysql-client \
  mysql --host=example.com --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

http://dev.mysql.com/doc/refman/5.7/en/mysql.html⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
9.9 MB
Last updated
over 10 years ago
docker pull sami/mysql-client:latest