CentOS 6.7下yum方式怎样安装MySQL 5.6
发布时间:2022-01-13 14:39:41 所属栏目:MySql教程 来源:互联网
导读:本篇文章给大家分享的是有关CentOS 6.7下yum方式怎么安装MySQL 5.6,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。 1、下载yum源 我的测试环境如下: [root@test ~]# cat /etc/redhat-rel
本篇文章给大家分享的是有关CentOS 6.7下yum方式怎么安装MySQL 5.6,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。 1、下载yum源 我的测试环境如下: [root@test ~]# cat /etc/redhat-release CentOS release 6.7 (Final) 所以下载了centos6系统yum源: 3、修改yum源配置 vim /etc/yum.repos.d/mysql-community.repo 安装mysql5.6操作 1)、将其他版本enabled=1更改为enabled=0 2)、将5.6版本enabled=0更改为enabled=1 # 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/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 4、开始现在安装包并安装 [root@test ~]# yum install mysql-community-server 已加载插件:fastestmirror, security 设置安装进程 Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.yun-idc.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com 解决依赖关系 --> 执行事务检查 ---> Package mysql-community-server.x86_64 0:5.6.47-2.el6 will be 安装 --> 处理依赖关系 mysql-community-common(x86-64) = 5.6.47-2.el6,它被软件包 mysql-community-server-5.6.47-2.el6.x86_64 需要 --> 处理依赖关系 mysql-community-client(x86-64) >= 5.6.10,它被软件包 mysql-community-server-5.6.47-2.el6.x86_64 需要 --> 执行事务检查 ---> Package mysql-community-client.x86_64 0:5.6.47-2.el6 will be 安装 --> 处理依赖关系 mysql-community-libs(x86-64) >= 5.6.10,它被软件包 mysql-community-client-5.6.47-2.el6.x86_64 需要 ---> Package mysql-community-common.x86_64 0:5.6.47-2.el6 will be 安装 --> 执行事务检查 ---> Package mysql-community-libs.x86_64 0:5.6.47-2.el6 will be 安装 --> 完成依赖关系计算 依赖关系解决 (编辑:好传媒网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
站长推荐
热点阅读