安装MySQL的时候遇到错误

错误如下:

是在执行安装mysql的时候出现的

yum -y install mysql-community-server

错误:

warning: /var/cache/yum/x86_64/2.1903/mysql57-community/packages/mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

大致意思就是MySQL的GPG升级了,需要更新,如果是新安装的MySQL,执行以下脚本即可:

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

然后再进行安装就好了

 

posted @ 2022-03-04 15:28  陌风陌风  阅读(618)  评论(0)    收藏  举报