The GPG key for source 'MySQL 8.0 Community Server' is installed, but not for this package. Please check if the source's public key URL is configured correctly.
The failing package is: mysql-community-server-8.0.31-1.el7.x86_64 The GPG key configuration is: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
sudo yum install mysql-server --nogpgcheck