centos7/redhat7安装mycli

Posted kklinux

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于centos7/redhat7安装mycli的主要内容,如果未能解决你的问题,请参考以下文章

Centos7/RedHat7 下 python3使用cx-freeze打包matplotlib程序遇到的问题和解决办法

linux centos7 redhat7 怎么 如何设置开机自动进入命令行模式

centos7/redhat7 将网卡名字改成eth样式的方法

centos7(redhat7) 中localtime_r有一个BUG

samba for centos7

centos7版本firewalld防火墙的基本命令配置管理