Home >Operation and Maintenance >CentOS >Installation of mysql-server under centos7 failed

Installation of mysql-server under centos7 failed

王林
王林Original
2020-04-03 09:32:382849browse

Installation of mysql-server under centos7 failed

Problem:

The installation of mysql-server failed as follows:

Installation of mysql-server under centos7 failed

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn