问题:使用yum install -y mysql-community-server.x86_64命令下载安装,提示如下信息
warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-server-8.0.36-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID a8d3785c: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The GPG keys listed for the "MySQL 8.0 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-server-8.0.36-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
提示说明密钥已安装但是不适用此软件包,所以我们应该更新或者重新安装。
1、使用 yum install -y mysql-community-server.x86_64 --nogpgcheck 强制安装