This repository contains a simple Docker image that will setup the command line interface (CLI) tools used to manage MySQL servers. This is useful usually to people that cannot easily install the mysql CLI tools to their machines or those are not available (e.g. macOS users). In order to use it please follow the below steps:
Step 1: docker pull egonbraun/mysql-cli
Step 2: docker build -t egonbraun/mysql-cli:latest .
Step 3: docker run -it mysql-cli
The last step will open a shell as root so you can start running the tools you need. ; -)
Keep in mind that the tools listed here are part of the MySQL 5.6 packages.
Note: Unofrtunately, since version 5.6 mysql-client does not provide mysqlbinlog. So, in order to have that available to us we need to install the whole server. #sorry
Here are the volumes created as part of this image so you can for example export data from your MySQL server and store it locally.