mysql shell安装失败_MySQL Shell 8的安装

1. 下载

https://dev.mysql.com/downloads/shell/https://www.cndba.cn/Expect-le/article/3158

下载对应版本的即可https://www.cndba.cn/Expect-le/article/3158https://www.cndba.cn/Expect-le/article/3158

2. 安装

2.1. 上传文件

[root@storage1 software]# ll

总用量 24528

-rw-r--r--. 1 root root 25115541 11月 21 10:35 mysql-shell-8.0.13-linux-glibc2.12-x86-64bit.tar.gz

2.2. 解压,安装

[root@storage1 software]# tar -zxvf mysql-shell-8.0.13-linux-glibc2.12-x86-64bit.tar.gz -C /usr/local

做一下软连接或直接重命名文件夹名词,好看点https://www.cndba.cn/Expect-le/article/3158https://www.cndba.cn/Expect-le/article/3158

[root@storage1 local]# ln -s mysql-shell-8.0.13-linux-glibc2.12-x86-64bit mysqlsh8

2.3. 配置环境变量

主要是方便使用

https://www.cndba.cn/Expect-le/article/3158

Vi /etc/profile

export PATH=/usr/local/mysqlsh8/bin/:$PATH

2.4. 测试

连接数据库试试

[root@storage1 local]# mysqlsh 'root'@127.0.0.1:3306

Creating a session to 'root@127.0.0.1:3306'

Please provide the password for 'root@127.0.0.1:3306': ****

Save password for 'root@127.0.0.1:3306'? [Y]es/[N]o/Ne[v]er (default No): yes --保存密码

Fetching schema names for autocompletion... Press ^C to stop.

Your MySQL connection id is 4

Server version: 5.7.17 MySQL Community Server (GPL)

No default schema selected; type /use to set one.

MySQL Shell 8.0.13

Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners

Type '/help' or '/?' for help; '/quit' to exit.

MySQL 127.0.0.1:3306 JS >

更多关于MySQL Shell的使用,请查看官方文档:https://www.cndba.cn/Expect-le/article/3158https://www.cndba.cn/Expect-le/article/3158

版权声明:本文为博主原创文章,未经博主允许不得转载。

MySQL Shel

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值