当前位置:Gxlcms > 数据库问题 > yum安装mysql 5.6

yum安装mysql 5.6

时间:2021-07-01 10:21:17 帮助过:35人阅读

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

人气教程排行