Failed to install MySQL on a Linux server

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

Guess you like

Origin blog.csdn.net/qq_44726330/article/details/128633096