Installation of mysql-server under centos7 failed

王林
Release: 2020-04-03 09:32:38
Original
2737 people have browsed it

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
Copy after login

2. Install the mysql-community-release-el7-5.noarch.rpm package

$ rpm -ivh mysql-community-release-el7-5.noarch.rpm
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!