Skip to content

talkincode/toughmysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mysql

快速安装:

$ wget https://github.com/talkincode/toughmysql/raw/master/tmshell -O /usr/local/bin/tmshell

$ chmod +x /usr/local/bin/tmshell

$ tmshell install

指令参考:

$ tmshell help      

usage: tmshell [OPTIONS] instance

docker_setup                install docker, docker-compose
pull                        mysql docker images pull
install                     install default mysql instance
remove                      uninstall mysql instance
config                      mysql instance config edit
status                      mysql instance status
restart                     mysql instance restart
stop                        mysql instance stop
logs                        mysql instance logs
showmaster                  mysql instance show master status
showslave                   mysql instance show slave status
upmaster                    mysql instance update master sync config
backup                      mysql instance backup database
dsh                         mysql instance bash term

All other options are passed to the tmshell program.

Packages

No packages published

Languages

  • Shell 100.0%