安装版本是linux的mysql5.7,安装时按照网上的文章安装,结果报错了:The GPG keys listed for the MySQL 5.7 Community Server,在网上找大半天,终于得到解决。
Linux安装Mysql5.7时出现如下报错
问题原因
这是由于MySQL GPG 密钥已过期导致的 问题解决出处 https://bugs.mysql.com/bug.php?id=106188
解决办法
需要如下运行命令, 以2022年为例
- rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
然后重新执行
- yum -y install mysql-community-server -y