Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arey/mysql-client

Run a MySQL client from a docker container
https://github.com/arey/mysql-client

Last synced: 2 days ago
JSON representation

Run a MySQL client from a docker container

Awesome Lists containing this project

README

        

# mysql-client

[![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://registry.hub.docker.com/u/arey/mysql-client/)

Docker image with a MySQL client.

This Docker image is based on Alpine Linux.
Support both Intel/AMD and ARM architectures.

Virtual size : 11 MB

From image: alpine:3.14

Mysql client: Ver 15.1 Distrib 10.1.26-MariaDB

## Usage

Execute SQL statements from an input SQL file:

```
$ docker run -v :/sql --link :mysql -it arey/mysql-client -h mysql -p -D -e "source /sql/"
```

## Build and publish

```
docker buildx install
docker buildx create --use
docker buildx build --platform linux/386,linux/amd64,linux/arm64,linux/arm . -t arey/mysql-client:latest --push
```