基于python安装pip
yum install python-pip python-devel
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install mycli
发现报错
Found existing installation: configobj 4.7.2
ERROR: Cannot uninstall ‘configobj‘. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决
# pip install --ignore-installed mycli
使用
# mycli -uroot -p123
mysql 5.7.22
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 - Phil Cohen
mysql [email protected]:(none)> show databases;