码迷,mamicode.com
首页 > 数据库 > 详细

Centos7安装mysql缺乏yum源怎么安装

时间:2015-11-02 20:45:28      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:

找到mysql5.6的centos的repo源,终于解决mysql的安装问题:

1.确保centos安装了wget,没有的话安装wget

 
1
yum install wget

2.下载mysql的repo源

 
1
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

3.安装mysql-community-release-el7-5.noarch.rpm包

 
1
rpm -ivh mysql-community-release-el7-5.noarch.rpm

4.安装这个包后,会获得两个mysql的yum repo源

 
1
2
3
4
[root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo
[root@localhost ~]#

5.然后安装mysql

 
1
yum install mysql-server

Centos7安装mysql缺乏yum源怎么安装

标签:

原文地址:http://www.cnblogs.com/xywq/p/4931088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!