阿里云安装Mysql报错

阿里云安装Mysql报错:

The GPG keys listed for the “MySQL 5.7 Community Server” repository are already installed but they are not correct for this packag
e.Check that the correct key URLs are configured for this repository.
Failing package is: mysql-community-server-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


源 “MySQL 5.7 Community Server” 的 GPG 密钥已安装,但是不适用于此软件包。请检查源的公钥 URL 是否配置正确。

失败的软件包是:mysql-community-server-5.7.37-1.el7.x86_64
GPG 密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

原因:第三步报错(yum -y install mysql-community-server)

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

然后继续执行第三步。

你可能感兴趣的:(Linux,mysql,阿里云,数据库)