GPG check failed
When installing MySQL on a Linux server, the GPG check fails
Cause of the problem: The GPG key has expired and a new key needs to be imported
Solution:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
CentOS8/Rocky8 failed to install mysql: nothing matched: mysql-community-server; GPG check failed