Home >Operation and Maintenance >CentOS >What should I do if mysql installation fails using the yum command under centos?

What should I do if mysql installation fails using the yum command under centos?

王林
王林Original
2020-03-26 16:12:352624browse

What should I do if mysql installation fails using the yum command under centos?

1. Go to the /etc/yum.repos.d directory and edit the mysql-community.repo file

[test@alps yum.repos.d]$ sudo vi mysql-community.repo

(recommended tutorial: centos tutorial)

2. Set enabled to 0, as shown below:

# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

3. Save and reinstall.

[test@alps yum.repos.d]$ sudo yum install mysql-server

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What should I do if mysql installation fails using the yum command under centos?. 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