https://github.com/fiftin/docker-mysql-client
https://github.com/fiftin/docker-mysql-client
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fiftin/docker-mysql-client
- Owner: fiftin
- Created: 2019-01-25T12:40:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T12:43:50.000Z (over 7 years ago)
- Last Synced: 2025-02-09T07:32:42.183Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-mysql-client
[](https://registry.hub.docker.com/u/banzaicloud/mysql-client/)
Docker image with a MySQL client.
This Docker image is based on Alpine Linux
From image: alpine:3.7
Mysql client: Ver 15.1 Distrib 10.1.32-MariaDB, for Linux (x86_64) using readline 5.1
## Environment Variables
Environment variable below are configurable to control how to execute mysq-client:
### `MYSQL_USERNAME`
Specified mysql user for connection
### `MYSQL_PASSWORD`
Specified mysql password for mysql connection
### `VERBOSE`
Set verbose mode
## Usage
```
$ docker run -e MYSQL_USERNAME -e MYSQL_PASSWORD -h mysql -h -e "show databases"
```