centos7 the solution yum install mysql-server packet not available

centos7 the solution yum install mysql-server packet not available

Step 1: Install wget command to download files from the Internet
[root @ master ~] # yum -y install wget
Step two: repo Source download the mysql
[root @ Master ~] # wget http://repo.mysql.com /mysql-community-release-el7-5.noarch.rpm
step 3: install mysql-community-release-el7-5.noarch.rpm package
[root @ master ~] # rpm -ivh mysql-community-release-el7 -5.noarch.rpm
step 4: Check the
[the root Master @ ~] -1 LS # /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/ etc / yum.repos.d / mysql-community- source.repo
get the mysql yum repo two sources: /etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql -community-source.repo.
Step 5: Install MySQL
[the root Master @ ~] # yum the install MySQL-Server

Guess you like

Origin blog.51cto.com/sonice/2412186