记录无法安装mysql-Invalid GPG Key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql的解决办法
记录遇到的问题;
在aliyun上安装MySQL时由于上次错误卸载mysql导致校验文件出问题;
处理方式有几种
1到mysql官网下载校验文件
2跳过校验,记录第二种
编辑文件/etc/yum.repos.d/mysql-community.repo
vi/etc/yum.repos.d/mysql-community.repo
<preclass="programlisting"style="box-sizing:inherit;margin-top:20px;margin-bottom:20px;margin-left:6px;padding:3px8px;border:1pxsolidrgb(217,217,217);outline:0px;font-size:12.6814px;vertical-align:baseline;font-family:'CourierNew',Courier,fixed,monospace;overflow:auto;line-height:1.5;background:rgb(238,238,238);"name="code">#EnabletouseMySQL5.6 [mysql56-community] name=MySQL5.6CommunityServer 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><spanstyle="font-family:CourierNew,Courier,fixed,monospace"><spanstyle="font-size:12.6814px;line-height:22.1924px">继续安装:</span></span></p> <prename="code"class="html">sudoyuminstallmysql-community-server</pre><br> 引用:https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html<br> <p></p> <p><spanstyle="font-family:'CourierNew',Courier,fixed,monospace;font-size:12.6814px;line-height:22.1924px"><br> <br> </span></p> <p><br> </p> <p><br> </p> <p><br> </p>
以上所述是小编给大家介绍的记录无法安装mysql-InvalidGPGKeyfromfile:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql的解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!