Tag Archives: Centos MYSQL Install Error

Centos MYSQL Install Error: The GPG keys listed for the “MySQL 8.0 Community Server” repository are already installed but they are not correct for this package.

Scenario:

When installing mysql8, I didn’t encounter this problem before. This time, I suddenly encountered a new problem (maybe 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.

 

Solution:

1. Try this first:

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

Then yum install mysql-community-server

2. If you can’t, you can use this:

sudo yum -y install * --nogpgcheck

GPG keys are the keys generated when the installation package is released. During installation, you need to check the keys to ensure security.