CentOS7中安装MySQL Client 8
一、安装包下载
地址:https://downloads.mysql.com/archives/community/
选择CentOS7版本,找到如下安装包,进行下载:
mysql-community-client-8.0.29-1.el7.x86_64.rpm mysql-community-client-plugins-8.0.29-1.el7.x86_64.rpm mysql-community-common-8.0.29-1.el7.x86_64.rpm mysql-community-devel-8.0.29-1.el7.x86_64.rpm mysql-community-libs-8.0.29-1.el7.x86_64.rpm
若网速不好,也可以通过百度网盘下载:
地址:https://pan.baidu.com/s/121_w5DFaLnA7Ov5An9NRsA
提取码:8c2e
二、安装
将rpm包上传服务器,并进行安装,--force --nodeps参数的作用是忽略依赖关系
rpm -ivh mysql-community-common-8.0.29-1.el7.x86_64.rpm rpm -ivh mysql-community-client-plugins-8.0.29-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-8.0.29-1.el7.x86_64.rpm --force --nodeps rpm -ivh mysql-community-devel-8.0.29-1.el7.x86_64.rpm rpm -ivh mysql-community-client-8.0.29-1.el7.x86_64.rpm --force --nodeps
三、验证版本
mysql --version