前言
2022年2月,在虚拟机安装MySQL5.7没问题,在阿里云装MySQL5.6也没问题
但是,在阿里云服务器装MySQL5.7各种报错信息
执行yum -y install mysql-server
报错如下
The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed
but they are not correct for this package.
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
然后执行systemctl start mysqld
报错如下
Failed to start mysqld.service: Unit not found.
大概意思是:
MySQL 5.7 Community Server
的仓库已装,但GPG校验不对
GPG签名主用于Linux实现官方发布