vim /etc/yum.repos.d/mysql.repo
# 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 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
yum clean all
yum install mysql-community-server
报错:
Public key for mysql-community-common-5.6.35-2.el6.x86_64.rpm is not installed
解决方法:
https://dev.mysql.com/doc/refman/5.6/en/checking-gpg-signature.html
复制链接中的PUBLIC KEY到mysql_pubkey.asc执行
gpg --import mysql_pubkey.asc
rpm --import mysql_pubkey.asc
原文地址:http://tenderrain.blog.51cto.com/9202912/1896079