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 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.

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

superboy@.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值