为Debian安装mysqlsh命令行

问题

最近在使用mysql的文档存储方式,需要使用mysqlsh命令行,但是默认的Debian系统没有mysqlsh的安装源,所以只能自己添加apt安装源,对mysqlsh命令行进行安装。

解决

下载deb包

https://dev.mysql.com/downloads/repo/apt/

安装依赖包

apt-get install lsb-release wget

安装deb包

 dpkg -i mysql-apt-config_0.8.13-1_all.deb

安装mysqlsh

先进行更新准备:

apt-get update

再进行安装:

apt-get install mysql-shell

安装提示:

MySQL APT Repo features MySQL Server along with a variety of MySQL components. You may select the appropriate product to choose the version that you wish to receive.

Once you are satisfied with the configuration then select last option 'Ok' to save the configuration, then run 'apt-get update' to load package list. Advanced users can always change the configurations later, depending on their own needs.

  1. MySQL Server & Cluster (Currently selected: mysql-8.0)  2. MySQL Tools & Connectors (Currently selected: Enabled)  3. MySQL Preview Packages (Currently selected: Disabled)  4. Ok

Which MySQL product do you wish to configure? 4

这里选者4即可。

测试

root@5f29020b36c0:/# mysqlsh -V
Logger: Tried to log to an uninitialized logger.
mysqlsh   Ver 8.0.17 for Linux on x86_64 - for MySQL 8.0.17 (MySQL Community Server (GPL))

参考

转载于:https://my.oschina.net/fxtxz2/blog/3081602

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值