一、mycli介紹
MySQL的命令行客戶端,可以執行自動完成和語法突出顯示。
主頁:http://mycli.net
文檔:http://mycli.net/docs
github:https://github.com/dbcli/mycli
二、實驗環境
VMware Workstation Pro15
Red Hat Enterprise Linux Server release 7.3 (Maipo)/CentOS Linux release 7.3.1611 (Core)
三、手動安裝mycli
1、下載並安裝epel源
wget --no-check-certificate https://mirrors.tuna.tsinghua.edu.cn/epel//epel-release-latest-7.noarch.rpm -O /tmp/epel-release-latest-7.noarch.rpm yum localinstall -y /tmp/epel-release-latest-7.noarch.rpm
2、安裝python-pip
yum install -y python-pip
3、安裝mycli
pip install mycli
四、腳本安裝mycli
如果你確定你的系統為centos7/redhat7,又不會安裝,可以執行下面這條命令
wget --no-check-certificate https://gitee.com/kklinux/shell/raw/master/myclik.sh && bash myclik.sh