luiselizondo/docker-mysql-scripts

语言: Python

git: https://github.com/luiselizondo/docker-mysql-scripts

一系列用python编写的有用命令,用于与在Docker上运行的MySQL服务器交互
A series of useful commands written in python to interact with a MySQL Server running on Docker
README.md (中文)

一系列用python编写的有用命令,用于与在Docker上运行的MySQL服务器交互

动机

Docker非常棒,但是当在Dockerized环境中使用MySQL时,简单的任务可以成为包含许多选项和参数的命令。

注意:以下命令将使用https://registry.hub.docker.com/_/mysql/上的官方MySQL docker镜像。

提供的命令

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)

安装

克隆或下载此项目然后运行:

$ cd directory_with_scripts
$ sudo chmod +x dmysql*
$ sudo cp dmysql* /usr/local/bin

执照

根据MIT许可证发布

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

A series of useful commands written in python to interact with a MySQL Server running on Docker

Motivation

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/

Commands provided

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)

Install

Clone or download this project then run:

$ cd directory_with_scripts
$ sudo chmod +x dmysql*
$ sudo cp dmysql* /usr/local/bin

License

Released under the MIT License