Cent OS 7.5 安裝mycli
1.先配置一個阿里yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
2.安裝epel-release
yum -y install?epel-release
3.安裝pip和python開發(fā)工具python-devel
yum -y install python-pip python-devel
yum clean all
4.安裝mycli
pip install mycli
5.使用mycli連接MySQL
[root@localhost ~]# mycli -h 192.168.0.104 -u root
Password:
mysql 5.7.12-log
mycli 1.19.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Darik Gamble