centos7/redhat7安装mycli
一、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