我将通过以下命令在centos 7上安装mysql-server:
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
sudo yum install mysql-server
但执行此命令后出错:
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
错误:
错误:mysql-community-release-el7-5.noarch.rpm:不是rpm包(或包清单):
答案 0 :(得分:0)
我已经按照以下步骤操作,使用yum没问题
wget https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
yum localinstall mysql80-community-release-el7-1.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum install mysql-community-server
service mysqld start
service mysqld status
mysql --version