CentOS yum安装mysql出现Public key for mysql-community-server-5.7.41-1.el6.x86_64.rpm is not installed

CentOS yum安装mysql出现Public key for mysql-community-server-5.7.41-1.el6.x86_64.rpm is not installed_第1张图片

这是由于MySQL GPG 密钥已过期导致的https://bugs.mysql.com/bug.php?id=106188

CentOS yum安装mysql出现Public key for mysql-community-server-5.7.41-1.el6.x86_64.rpm is not installed_第2张图片

在安装mysql之前导入2022年的密钥:

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

再重新安装

yum install mysql-community-server -y

CentOS yum安装mysql出现Public key for mysql-community-server-5.7.41-1.el6.x86_64.rpm is not installed_第3张图片

你可能感兴趣的:(java,mysql,linux,centos)