CentOS-MySQL5.7密钥报错
使用yum安装MySQL时报错
yum -y install mysql mysql-server
yum -y install mysql-community-server
报错内容如下
1 | warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY |
处理方式有两种
到mysql官网下载校验文件
修改配置跳过校验
1.编辑文件
/etc/yum.repos.d/mysql-community.repo
2.修改对应安装版本的gpgcheck=0
即可,默认值为1
1 | [mysql57-community] |
再次执行安装即可