Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        在27天前关闭。
                                                                                            
                
        
我将通过以下命令在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包(或包清单):

最佳答案

我已按照以下步骤操作,但是使用yum不会出现任何问题

wget https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpmyum localinstall mysql80-community-release-el7-1.noarch.rpm yum repolist enabled | grep "mysql.*-community.*"yum install mysql-community-serverservice mysqld startservice mysqld statusmysql --version

10-07 13:51