yum install -y mysql-community-server
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql-community-server.x86_64.0.8.0.41-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-common(x86-64) = 8.0.41-1.el7,它被软件包 mysql-community-server-8.0.41-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-icu-data-files = 8.0.41-1.el7,它被软件包 mysql-community-server-8.0.41-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-client(x86-64) >= 8.0.11,它被软件包 mysql-community-server-8.0.41-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 mysql-community-client.x86_64.0.8.0.41-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-client-plugins = 8.0.41-1.el7,它被软件包 mysql-community-client-8.0.41-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 8.0.11,它被软件包 mysql-community-client-8.0.41-1.el7.x86_64 需要
---> 软件包 mysql-community-common.x86_64.0.8.0.41-1.el7 将被 安装
---> 软件包 mysql-community-icu-data-files.x86_64.0.8.0.41-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.41-1.el7 将被 安装
---> 软件包 mysql-community-libs.x86_64.0.8.0.41-1.el7 将被 舍弃
--> 正在检查事务
---> 软件包 mysql-community-libs-compat.x86_64.0.8.0.41-1.el7 将被 舍弃
--> 解决依赖关系完成
依赖关系解决
========================================================================================================================================================================================
Package 架构 版本 源 大小
========================================================================================================================================================================================
正在安装:
mysql-community-libs x86_64 8.0.41-1.el7 mysql80-community 1.5 M
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-libs-compat x86_64 8.0.41-1.el7 mysql80-community 669 k
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-server x86_64 8.0.41-1.el7 mysql80-community 65 M
为依赖而安装:
mysql-community-client x86_64 8.0.41-1.el7 mysql80-community 16 M
mysql-community-client-plugins x86_64 8.0.41-1.el7 mysql80-community 3.5 M
mysql-community-common x86_64 8.0.41-1.el7 mysql80-community 666 k
mysql-community-icu-data-files x86_64 8.0.41-1.el7 mysql80-community 2.2 M
事务概要
========================================================================================================================================================================================
安装 3 软件包 (+4 依赖软件包)
总下载量:89 M
Downloading packages:
警告:/var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-client-plugins-8.0.41-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID a8d3785c: NOKEY5.9 MB 00:00:35 ETA
mysql-community-client-plugins-8.0.41-1.el7.x86_64.rpm 的公钥尚未安装
(1/7): mysql-community-client-plugins-8.0.41-1.el7.x86_64.rpm | 3.5 MB 00:00:02
(2/7): mysql-community-common-8.0.41-1.el7.x86_64.rpm | 666 kB 00:00:00
(3/7): mysql-community-icu-data-files-8.0.41-1.el7.x86_64.rpm | 2.2 MB 00:00:01
(4/7): mysql-community-libs-8.0.41-1.el7.x86_64.rpm | 1.5 MB 00:00:01
(5/7): mysql-community-libs-compat-8.0.41-1.el7.x86_64.rpm | 669 kB 00:00:00
(6/7): mysql-community-client-8.0.41-1.el7.x86_64.rpm | 16 MB 00:00:06
(7/7): mysql-community-server-8.0.41-1.el7.x86_64.rpm | 65 MB 00:00:17
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 3.9 MB/s | 89 MB 00:00:22
从 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-9.noarch (installed)
来自 : /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-9.noarch (installed)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
mysql-community-server-8.0.41-1.el7.x86_64.rpm 的公钥尚未安装
失败的软件包是:mysql-community-server-8.0.41-1.el7.x86_64
GPG 密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022, file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
解决方案:
yum install -y mysql-community-server --nogpgcheck