安装
mycli基于python,通过包管理器pip安装即可。
1、centos7安装pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install mycli
使用
[root@localhost ~]# mycli -u root -h 127.0.0.1 test
Password:
mysql 8.0.18
mycli 1.20.1
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Jonathan Slenders
mysql root@127.0.0.1:test> exit;
Goodbye!
功能介绍
- 自动补全
- 高危操作二次确认