解决mysql-community-server安装时的GPG密钥问题
<p>安装<strong>mysql-community-server</strong>时出现以下错误:</p>
<p><strong>命令:</strong></p>
<pre class="brush:php;toolbar:false;">sudo yum install mysql-community-server</pre>
<p><strong>错误:</strong></p>
<pre class="brush:php;toolbar:false;">warning: /var/cache/yum/x86_64/2/mysql57-community/packages/mysql-community-libs-compat-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
"MySQL 5.7 Community Server"仓库的GPG密钥已经安装,但对于此软件包来说不正确。
请检查是否为此仓库配置了正确的密钥URL。
失败的软件包是:mysql-community-libs-compat-5.7.37-1.el7.x86_64
GPG密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql</pre>
<p>有人能帮忙吗...</p>