当前位置:   article > 正文

【CentOS7】安装 mysql client 5.7

【CentOS7】安装 mysql client 5.7

前言

  • CentOS Linux release 7.6.1810
  • mysql 5.7.31

下载rpm

需要下载下面这三个rpm:

  • mysql-community-common-5.7.31-1.el7.x86_64.rpm
  • mysql-community-libs-5.7.31-1.el7.x86_64.rpm
  • mysql-community-client-5.7.31-1.el7.x86_64.rpm
wget https://cdn.mysql.com/archives/mysql-5.7/mysql-community-common-5.7.31-1.el7.x86_64.rpm
wget https://cdn.mysql.com/archives/mysql-5.7/mysql-community-libs-5.7.31-1.el7.x86_64.rpm
wget https://cdn.mysql.com/archives/mysql-5.7/mysql-community-client-5.7.31-1.el7.x86_64.rpm
  • 1
  • 2
  • 3

如果上述地址不可用,尝试在这里找找新的地址:
https://downloads.mysql.com/archives/community/

安装

yum install -y mysql-community-common-5.7.31-1.el7.x86_64.rpm
yum install -y mysql-community-libs-5.7.31-1.el7.x86_64.rpm
yum install -y mysql-community-client-5.7.31-1.el7.x86_64.rpm
  • 1
  • 2
  • 3

检查是否安装成功

shell> mysql -V
mysql  Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using  EditLine wrapper
  • 1
  • 2

远程连接mysql

shell> mysql -hxxx.xxx.0.3 -uroot -pmysql-secret
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/229388
推荐阅读
相关标签
  

闽ICP备14008679号