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>
修改gpgcheck=0即可
p>/p>
p>span style="font-family:Courier New,Courier,fixed,monospace">span style="font-size:12.6814px; line-height:22.1924px">繼續(xù)安裝:/span>/span>/p>
pre name="code" class="html"> sudo yum install mysql-community-server/pre>br>
引用:https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.htmlbr>
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>
以上所述是小編給大家介紹的記錄無(wú)法安裝mysql-Invalid GPG Key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql的解決辦法,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!