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

Table of contents

        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.

  The installation sql command is as follows:

Cause Analysis:

Solution:

1. You can try this first:

2. Then execute:

 3. If not, you can use this:

Precautions:


        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.

The error message and the screenshot of the error report are as follows:

  The installation sql command is as follows:

yum install mysql-community-server

        As in the above command, to install the MySQL database, after executing the above command, it prompts an error: 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.
    The error screenshot is as follows:


Cause Analysis:

  • GPG keys are the keys generated when the installation package is released, and the installation needs to check the keys to ensure security

Solution:

1. You can try this first:

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

2. Then execute:

yum install mysql-community-server

 3. If not, you can use this:

sudo yum -y install * --nogpgcheck


Precautions:

    If the above operations still cannot solve the problem, it is recommended to uninstall all SQL-related modules and all their folders, then re-select the SQL meta-download address, and reinstall SQL.
 

   [I have encountered this situation and successfully dealt with it, so I will summarize it.


    The above is about the centos8 installation mysql error: The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

Guess you like

Origin blog.csdn.net/weixin_46504244/article/details/125589431