When installing mysql8, I did not encounter this problem before, but this time I suddenly encountered a new problem (maybe mysql5.7 was installed before?):
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
1.You can try this first:
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum install mysql-community-server
2.If not, you can use this:
sudo yum -y install * --nogpgcheck
mysql-community-server, depend on your needs.
GPG keys are the keys generated when the installation package is released, and the installation needs to check the keys to ensure security