phpmyadmin-cli
access phpmyadmin from cli / 通过shell操作phpmyadmin
features
- access phpmyadmin from cli
- grammar tip
install
go get github.com/Chyroc/phpmyadmin-cli
use
➜ ~ phpmyadmin-cli -h
NAME:
phpmyadmin-cli - access phpmyadmin from shell cli
USAGE:
phpmyadmin-cli [global options] [arguments...]
GLOBAL OPTIONS:
-url phpMyAdmin url
-server 选择server
-username phpMyAdmin用户名(为空则跳过验证)
-password phpMyAdmin密码
-history command history file (default: "~/.phpmyadmin_cli_history")
-log command log file (default: "~/.phpmyadmin_cli.log")
-list 获取server列表
-prune 清理命令记录
-h show help
➜ ~ phpmyadmin-cli -url ip:port
>>>
command
show servers;
set server_id;