Home >Operation and Maintenance >CentOS >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!