输入banner图图片脚本导航/分类

yum安装mysql 5.6

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


yum安装mysql 5.6

标签:mysql msyql5.6 yum