Skip to content

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

License

Notifications You must be signed in to change notification settings

s83/docker-mysql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published