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

王林
Release: 2020-03-26 16:12:35
Original
2520 people have browsed it

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

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

3. Save and reinstall.

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

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!

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
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!