centos7 安装mysql8:
1.
yum remove mariadb-libs.x86_64
2.
wget https://dev.mysql.com/get/mysql80-community-release-el7-6.noarch.rpm
3.
yum localinstall mysql80-community-release-el7-6.noarch.rpm
4.
yum install mysql-community-server -y
此时报错信息:
获取 GPG 密钥失败:[Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022"
执行以下命令:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
再执行mysql的服务端安装即可:
yum install mysql-community-server -y
yum install mysql-community-server -y 失败:获取 GPG 密钥失败:[Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022"