记录遇到的问题;
在aliyun上安装mysql时由于上次错误卸载mysql 导致校验文件出问题;
1到mysql官网下载校验文件
2跳过校验,记录第二种
编辑文件/etc/yum.repos.d/mysql-community.repo 修改gpgkey=0
vi /etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.6[mysql56-community]
name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
sudo yum install mysql-community-server
引用:https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html