无法安装mysql-InvalidGPGKeyfromfile:/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
# Enable to use MySQL 5.6 [mysql56-community] name=MySQL 5.6 Community Server baseurl=repo.mysql/yum/mysql-5.6-community/el/6/$basearch/ enabled=1 gpgcheck=1-->0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql修改gpgcheck=0即可
继续安装:
sudo yum install mysql-community-server