centos mysql安装报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are a
场景:
安装mysql8的时候,之前没遇到这个问题,这次突然遇到新的问题(可能是之前装了mysql5.7?):The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
解决:
1.可以先尝试这个:
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
然后在yum install mysql-community-server
2.不行的话,可以用这个:
sudo yum -y install * --nogpgcheck
GPG keys是安装包发布时生成的密钥,安装是需要核对密钥来确保安全性
参考:
https://www.cnblogs.com/gaohongyu/p/14479497.html