步骤:
我的服务器来自三丰云,永久免费使用。
安装mysql
导入rpm包,并安装mysql-community-server
yum localinstall https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
yum install -y mysql-community-server
如果出现这样的报错:
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
Failing package is: mysql-community-icu-data-files-8.0.29-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
执行rpm --import https://repo.mysql.com/RP