centos7解決yum install mysql-server沒有可用包?

[linux]centos7下解決yum install mysql-server沒有可用包

第一步:安裝從網上下載文件的wget命令html

[root@master ~]# yum -y install wget

第二步:下載mysql的repo源mysql

[root@master ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 

第三步:安裝mysql-community-release-el7-5.noarch.rpm包linux

[root@master ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm

第四步:查看下sql

[root@master ~]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo

會得到兩個mysql的yum repo源:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo。centos

第五步:安裝mysqlpost

[root@master ~]# yum install mysql-server
相關文章
相關標籤/搜索