Home >Operation and Maintenance >CentOS >Installation of mysql-server under centos7 failed
Problem:
The installation of mysql-server failed as follows:
Reason:
CentOS 7 version removes the MySQL database software from the default program list and replaces it with mariadb.
Solution:
1. Download the repo source of mysql
$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2. Install the mysql-community-release-el7-5.noarch.rpm package
$ rpm -ivh mysql-community-release-el7-5.noarch.rpm
After installing this package, you will get two mysql yum repo sources: /etc/yum.repos.d/mysql-community.repo, /etc/yum.repos.d/mysql- community-source.repo.
3. Install mysql
$ yum install mysql-server
Recommended tutorial: centos tutorial
The above is the detailed content of Installation of mysql-server under centos7 failed. For more information, please follow other related articles on the PHP Chinese website!