centos下使用yum命令安装mysql失败了怎么办

1、进到/etc/yum.repos.d目录编辑mysql-community.repo 文件
[test@alps yum.repos.d]$ sudo vi mysql-community.repo
(推荐教程:centos教程)
2、将enabled设置为0,如下面:
# 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、保存重新安装即可。
AI Room Planner
AI 室内设计工具,免费为您的房间提供上百种设计方案
136
查看详情
[test@alps yum.repos.d]$ sudo yum install mysql-server
相关视频教程推荐:linux视频教程
以上就是centos下使用yum命令安装mysql失败了怎么办的详细内容,更多请关注其它相关文章!
