centos7 yum 安装mysql8

1. 下载rpm包

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

mysql80-community-release-el7-5.noarch.rpm

2. 安装rpm包

[root@py soft]# yum -y install mysql80-community-release-el7-5.noarch.rpm
已加载插件:fastestmirror, langpacks
正在检查 mysql80-community-release-el7-5.noarch.rpm: mysql80-community-release-el7-5.noarch
mysql80-community-release-el7-5.noarch.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql80-community-release.noarch.0.el7-5 将被 安装
--> 解决依赖关系完成

依赖关系解决

============================================================================================================================================
 Package                                架构                版本                 源                                                    大小
============================================================================================================================================
正在安装:
 mysql80-community-release              noarch              el7-5                /mysql80-community-release-el7-5.noarch              9.1 k

事务概要
============================================================================================================================================
安装  1 软件包

总计:9.1 k
安装大小:9.1 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : mysql80-community-release-el7-5.noarch                                                                                  1/1 
  验证中      : mysql80-community-release-el7-5.noarch                                                                                  1/1 

已安装:
  mysql80-community-release.noarch 0:el7-5                                                                                                  

完毕!

3. 安装mysql

[root@py soft]# yum install -y install mysql-community-server
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.ustc.edu.cn
没有可用软件包 install。
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql-community-server.x86_64.0.8.0.28-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-common(x86-64) = 8.0.28-1.el7,它被软件包 mysql-community-server-8.0.28-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-icu-data-files = 8.0.28-1.el7,它被软件包 mysql-community-server-8.0.28-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-client(x86-64) >= 8.0.11,它被软件包 mysql-community-server-8.0.28-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 mysql-community-client.x86_64.0.8.0.28-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-client-plugins = 8.0.28-1.el7,它被软件包 mysql-community-client-8.0.28-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 8.0.11,它被软件包 mysql-community-client-8.0.28-1.el7.x86_64 需要
---> 软件包 mysql-community-common.x86_64.0.8.0.28-1.el7 将被 安装
---> 软件包 mysql-community-icu-data-files.x86_64.0.8.0.28-1.el7 将被 安装
--> 正在检查事务
---> 软件包 mariadb-libs.x86_64.1.5.5.68-1.el7 将被 取代
--> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-9.el7.x86_64 需要
--> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-9.el7.x86_64 需要
---> 软件包 mysql-community-client-plugins.x86_64.0.8.0.28-1.el7 将被 安装
---> 软件包 mysql-community-libs.x86_64.0.8.0.28-1.el7 将被 舍弃
--> 正在检查事务
---> 软件包 mysql-community-libs-compat.x86_64.0.8.0.28-1.el7 将被 舍弃
--> 解决依赖关系完成

依赖关系解决

============================================================================================================================================
 Package                                        架构                   版本                         源                                 大小
============================================================================================================================================
正在安装:
 mysql-community-libs                           x86_64                 8.0.28-1.el7                 mysql80-community                 4.7 M
      替换  mariadb-libs.x86_64 1:5.5.68-1.el7
 mysql-community-libs-compat                    x86_64                 8.0.28-1.el7                 mysql80-community                 1.2 M
      替换  mariadb-libs.x86_64 1:5.5.68-1.el7
 mysql-community-server                         x86_64                 8.0.28-1.el7                 mysql80-community                 451 M
为依赖而安装:
 mysql-community-client                         x86_64                 8.0.28-1.el7                 mysql80-community                  53 M
 mysql-community-client-plugins                 x86_64                 8.0.28-1.el7                 mysql80-community                 5.7 M
 mysql-community-common                         x86_64                 8.0.28-1.el7                 mysql80-community                 630 k
 mysql-community-icu-data-files                 x86_64                 8.0.28-1.el7                 mysql80-community                 2.1 M

事务概要
============================================================================================================================================
安装  3 软件包 (+4 依赖软件包)

总下载量:518 M
Downloading packages:
警告:/var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm 的公钥尚未安装
(1/7): mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm                                                        | 5.7 MB  00:00:05     
(2/7): mysql-community-common-8.0.28-1.el7.x86_64.rpm                                                                | 630 kB  00:00:00     
(3/7): mysql-community-icu-data-files-8.0.28-1.el7.x86_64.rpm                                                        | 2.1 MB  00:00:01     
(4/7): mysql-community-client-8.0.28-1.el7.x86_64.rpm                                                                |  53 MB  00:00:09     
(5/7): mysql-community-libs-compat-8.0.28-1.el7.x86_64.rpm                                                           | 1.2 MB  00:00:00     
(6/7): mysql-community-libs-8.0.28-1.el7.x86_64.rpm                                                                  | 4.7 MB  00:00:03     
(7/7): mysql-community-server-8.0.28-1.el7.x86_64.rpm                                                                | 451 MB  00:01:05     
--------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                        6.9 MB/s | 518 MB  00:01:14     
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 检索密钥
导入 GPG key 0x3A79BD29:
 用户ID     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 指纹       : 859b e8d7 c586 f538 430b 19c2 467b 942d 3a79 bd29
 软件包     : mysql80-community-release-el7-5.noarch (@/mysql80-community-release-el7-5.noarch)
 来自       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 检索密钥
导入 GPG key 0x5072E1F5:
 用户ID     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 指纹       : a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
 软件包     : mysql80-community-release-el7-5.noarch (@/mysql80-community-release-el7-5.noarch)
 来自       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : mysql-community-common-8.0.28-1.el7.x86_64                                                                              1/8 
  正在安装    : mysql-community-client-plugins-8.0.28-1.el7.x86_64                                                                      2/8 
  正在安装    : mysql-community-libs-8.0.28-1.el7.x86_64                                                                                3/8 
  正在安装    : mysql-community-client-8.0.28-1.el7.x86_64                                                                              4/8 
  正在安装    : mysql-community-icu-data-files-8.0.28-1.el7.x86_64                                                                      5/8 
  正在安装    : mysql-community-server-8.0.28-1.el7.x86_64                                                                              6/8 
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
  正在安装    : mysql-community-libs-compat-8.0.28-1.el7.x86_64                                                                         7/8 
  正在删除    : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                      8/8 
  验证中      : mysql-community-client-8.0.28-1.el7.x86_64                                                                              1/8 
  验证中      : mysql-community-server-8.0.28-1.el7.x86_64                                                                              2/8 
  验证中      : mysql-community-client-plugins-8.0.28-1.el7.x86_64                                                                      3/8 
  验证中      : mysql-community-common-8.0.28-1.el7.x86_64                                                                              4/8 
  验证中      : mysql-community-libs-compat-8.0.28-1.el7.x86_64                                                                         5/8 
  验证中      : mysql-community-libs-8.0.28-1.el7.x86_64                                                                                6/8 
  验证中      : mysql-community-icu-data-files-8.0.28-1.el7.x86_64                                                                      7/8 
  验证中      : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                      8/8 

已安装:
  mysql-community-libs.x86_64 0:8.0.28-1.el7 mysql-community-libs-compat.x86_64 0:8.0.28-1.el7 mysql-community-server.x86_64 0:8.0.28-1.el7

作为依赖被安装:
  mysql-community-client.x86_64 0:8.0.28-1.el7                     mysql-community-client-plugins.x86_64 0:8.0.28-1.el7                    
  mysql-community-common.x86_64 0:8.0.28-1.el7                     mysql-community-icu-data-files.x86_64 0:8.0.28-1.el7                    

替代:
  mariadb-libs.x86_64 1:5.5.68-1.el7                                                                                                        

完毕!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值