A series of useful commands written in python to interact with a MySQL Server running on Docker
Docker is awesome, but when using MySQL on a Dockerized environment simple tasks can become commands with lots of options and arguments.
Note: The following commands will use the official MySQL docker image found at https://registry.hub.docker.com/_/mysql/
dmysql-server (Start a new MySQL Server)
dmysql (Open the mysql cli)
dmysql-create-database (Creates a new database)
dmysql-import-database (Imports a database)
Clone or download this project then run:
$ cd directory_with_scripts
$ sudo chmod +x dmysql*
$ sudo cp dmysql* /usr/local/bin
Released under the MIT License