mysql命令行安装报错,mysql命令行自动补全——mycli安装

[[email protected] ~]# yum -y install python-pip python-devel

[[email protected] ~]# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

[[email protected] ~]# python get-pip.py

2、发现报错如下:

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.

3、解决错误:

[[email protected] ~]# pip install --ignore-installed mycli

4、测试使用效果:

[[email protected] ~]# mycli -uroot -p123.com #使用命令mycli登录到数据库

#以下是提示信息

(2003, "Can‘t connect to MySQL server on ‘localhost‘ ([Errno 2] No such file or directory)")

Failed to connect by socket, retrying over TCP/IP

mysql 5.7.24

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 - Mikhail Borisov

5、写SQL语句测试效果(出现的提示,可以使用上下键来进行选择。):

20191213092227667481.png

———————— 本文至此结束,感谢阅读 ————————

原文:https://blog.51cto.com/14154700/2458093

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值