centos7安装mysql5.7

  1. 云栖社区>
  2. 博客>
  3. 正文

centos7安装mysql5.7

幸福的红帆 2017-11-08 11:58:05 浏览1072
展开阅读全文

下载软件包:

mysql-5.7.14-1.el7.x86_64.rpm-bundle.tar

 

解压后为下列rpm包:

mysql-community-embedded-compat-5.7.14-1.el7.x86_64.rpm  

mysql-community-server-5.7.14-1.el7.x86_64.rpm

mysql-community-client-5.7.14-1.el7.x86_64.rpm   

mysql-community-embedded-devel-5.7.14-1.el7.x86_64.rpm    

mysql-community-server-minimal-5.7.14-1.el7.x86_64.rpm

mysql-community-common-5.7.14-1.el7.x86_64.rpm   

mysql-community-libs-5.7.14-1.el7.x86_64.rpm              

mysql-community-test-5.7.14-1.el7.x86_64.rpm

mysql-community-devel-5.7.14-1.el7.x86_64.rpm    

mysql-community-libs-compat-5.7.14-1.el7.x86_64.rpm

mysql-community-embedded-5.7.14-1.el7.x86_64.rpm

 mysql-community-minimal-debuginfo-5.7.14-1.el7.x86_64.rpm

 

实际上我们并不需要安装所有的软件包,只安装client和server即可,但是貌似不可能,还有很多依赖关系,安装如下:

 

  首先,卸载系统自带的mriadb-libs软件包,5.6安装时会自动卸载,但5.7貌似不能,手动卸载

   #rpm –e mariadb-libs  --nodeps

  

  其次,根据依赖提示安装rpm包:

   #rpm –ivh mysql-community-common-5.7.14-1.el7.x86_64.rpm

   #rpm –ivh mysql-community-libs-5.7.14-1.el7.x86_64.rpm

   #rpm –ivh mysql-community-client-5.7.14-1.el7.x86_64.rpm

# rpm –ivh mysql-community-server-5.7.14-1.el7.x86_64.rpm

   #rpm –ivh mysql-community-devel-5.7.14-1.el7.x86_64.rpm

网友评论

登录后评论
0/500
评论
幸福的红帆
+ 关注