当前位置:网站首页>centos8安装mysql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins

centos8安装mysql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins

2022-07-06 18:17:00 [email protected]

目录

        centos8安装mysql报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

  安装sql命令如下:

原因分析:

解决办法:

1.可以先尝试这个:

2.然后再执行:

 3.不行的话,可以用这个:

注意事项:


        centos8安装mysql报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

报错信息、报错截图示下:

  安装sql命令如下:

yum install mysql-community-server

        如上述命令,要安装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.
    报错截图如下:


原因分析:

  • GPG keys是安装包发布时生成的密钥,安装是需要核对密钥来确保安全性

解决办法:

1.可以先尝试这个:

 sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

2.然后再执行:

yum install mysql-community-server

 3.不行的话,可以用这个:

sudo yum -y install * --nogpgcheck


注意事项:

    如果上述操作仍不能解决问题,只能建议卸载全部SQL相关模块及其所有文件夹,然后重新选择SQL元下载地址,重新安装SQL了。
 

   【本人遇到过该情况,并成功处理,所以总结一下。】


    以上就是关于centos8安装mysql报错:The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

原网站

版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_46504244/article/details/125589431