Record failed to install mysql Invalid GPG Key from file: and etc and pki and rpm gpg and RPM GPG KEY mysql solution

  • 2021-06-28 14:25:39
  • OfStack

Record problems encountered;

When installing MySQL on aliyun, there was a problem checking the file because mysql was uninstalled incorrectly last time.

There are several ways of handling

1 Download the check file on the mysql website

2 Skip checks, record type 2

Edit File /etc/yum.repos.d/mysql-community.repo


vi /etc/yum.repos.d/mysql-community.repo 

<pre class="programlisting" style="box-sizing: inherit; margin-top: 20px; margin-bottom: 20px; margin-left: 6px; padding: 3px 8px; border: 1px solid rgb(217, 217, 217); outline: 0px; font-size: 12.6814px; vertical-align: baseline; font-family: 'Courier New', Courier, fixed, monospace; overflow: auto; line-height: 1.5; background: rgb(238, 238, 238);" name="code"># Enable to use MySQL 5.6 
[mysql56-community] 
name=MySQL 5.6 Community Server 
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/ 
enabled=1 
gpgcheck=1-->0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql</pre> 
<pre></pre> 
<p></p> 
<pre></pre> 
 modify gpgcheck=0 that will do  
<p></p> 
<p><span style="font-family:Courier New,Courier,fixed,monospace"><span style="font-size:12.6814px; line-height:22.1924px"> Continue installation: </span></span></p> 
<pre name="code" class="html"> sudo yum install mysql-community-server</pre><br> 
 Quote: https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html<br> 
<p></p> 
<p><span style="font-family:'Courier New',Courier,fixed,monospace; font-size:12.6814px; line-height:22.1924px"><br> 
<br> 
</span></p> 
<p><br> 
</p> 
<p><br> 
</p> 
<p><br> 
</p> 

Related articles: