您的当前位置:首页正文

CentOS7.9安装Mysql5.7, 解决公钥未安装错误

2025-01-08 来源:个人技术集锦

安装数据库

# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql-community-server

错误信息:

mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm 的公钥尚未安装
 失败的软件包是:mysql-community-libs-compat-5.7.37-1.el7.x86_64
 GPG  密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

解决办法:

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
再次安装,成功

yum install mysql-server

显示全文