https://github.com/imega/mysql-client
https://github.com/imega/mysql-client
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imega/mysql-client
- Owner: iMega
- Created: 2015-04-30T14:07:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-30T14:25:36.000Z (about 11 years ago)
- Last Synced: 2025-05-24T20:02:07.963Z (about 1 year ago)
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mysql-client
This is docker image to run a MySQL client.
Image size: 16 MB
From image: gliderlabs/alpine:3.1
Mysql client: 5.5.40-r1
## Usage
You make [container with MySQL server](http://imega.club/2015/04/30/docker-image-mysql).
Mysql console
```
$ docker run -v /path/to/dumps:/sql --link mysqlsrv:mysqlsrv -it imega/mysql-client -h mysqlsrv
```
Mysql dump
```
$ docker run -v /path/to/dumps:/sql --link mysqlsrv:mysqlsrv imega/mysql-client -h mysqlsrv -D imega -e "source /sql/dump.sql"
```
PS: Thanks [vasiliy-t](https://github.com/vasiliy-t)