`

[转] 如何从MySQL官方Yum仓库安装MySQL5.6

阅读更多

 

 

2013年10月,MySQL开发团队正式宣布支持Yum仓库,这就意味着我们现在可以从这个Yum库中获得最新和最优版的MySQL安装包。本文将在一台全新安装的CentOS6上安装MySQL5.6,如果你不熟悉MySQL5.6的新特性,我建议从MySQL 5.6的新特性开始,其中有很多非常有用的特性。

        首先我们需要从MySQL开发者网站下载Yum仓库文件,导入Yum库后,一个简单的yumupdate命令将确保你运行在MySQL5.6的最新发布版 上,包括一些安全特性的更新。Yum同时也将确保导入相关依赖库,这些都将使我们的安装过程简单化。进入http://dev.mysql.com/downloads/repo/,下载RedHat Enterprise Linux 6 / Oracle Linux 6版。

 

下载完成后将Yum库导入到你的本地:

# mkdir /tmp/soft/

# mv /home/gao/download/mysql-community-release-el6-5.noarch.rpm  /tmp/soft/

 

 

# yum localinstall  mysql-community-release-el6-5.noarch.rpm  
或者
# rpm -ivh mysql-community-release-el6-5.noarch.rpm
或者
# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

 

 

这个Yum库包含了MySQLServer,MySQL工作台管理工具以及ODBC驱动,现在可以通过下面的命令简单地安装MySQLServer:

 

#  yum install mysql-community-server  

 


至此我就可以使用Yum简单地管理MySQL更新,并能确保总是从官网软件库得到最新的发布版

 

 参考网址:

http://www.ttlsa.com/mysql/a-quick-guide-to-using-the-mysql-yum-repository/

 

http://blog.csdn.net/iefreer/article/details/38366575

 

[root@centOS-i386-mini soft]# rpm -ivh mysql-community-release-el6-5.noarch.rpm Preparing...                ########################################### [100%]
   1:mysql-community-release########################################### [100%]
[root@centOS-i386-mini soft]# ll
总用量 8
-rw-r--r--. 1 root root 5824 11月 13 22:37 mysql-community-release-el6-5.noarch.rpm
[root@centOS-i386-mini soft]# yum install mysql-community-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * PUIAS_6_computational: puias.math.ias.edu
 * base: mirrors.163.com
 * epel: mirrors.opencas.cn
 * extras: mirrors.btte.net
 * updates: mirror.neu.edu.cn
mysql-connectors-community                               | 2.5 kB     00:00    
mysql-connectors-community/primary_db                    | 8.8 kB     00:00    
mysql-tools-community                                    | 2.5 kB     00:01    
mysql-tools-community/primary_db                         |  18 kB     00:00    
mysql56-community                                        | 2.5 kB     00:00    
mysql56-community/primary_db                             |  82 kB     00:03    
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.i686 0:5.6.27-2.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-32) = 5.6.27-2.el6 for package: mysql-community-server-5.6.27-2.el6.i686
--> Processing Dependency: mysql-community-client(x86-32) = 5.6.27-2.el6 for package: mysql-community-server-5.6.27-2.el6.i686
--> Processing Dependency: libnuma.so.1(libnuma_1.2) for package: mysql-community-server-5.6.27-2.el6.i686
--> Processing Dependency: libnuma.so.1(libnuma_1.1) for package: mysql-community-server-5.6.27-2.el6.i686
--> Processing Dependency: libnuma.so.1 for package: mysql-community-server-5.6.27-2.el6.i686
--> Running transaction check
---> Package mysql-community-client.i686 0:5.6.27-2.el6 will be installed
--> Processing Dependency: mysql-community-libs(x86-32) = 5.6.27-2.el6 for package: mysql-community-client-5.6.27-2.el6.i686
---> Package mysql-community-common.i686 0:5.6.27-2.el6 will be installed
---> Package numactl.i686 0:2.0.9-2.el6 will be installed
--> Running transaction check
---> Package mysql-community-libs.i686 0:5.6.27-2.el6 will be obsoleting
---> Package mysql-libs.i686 0:5.1.73-3.el6_5 will be obsoleted
--> Processing Dependency: libmysqlclient.so.16 for package: perl-DBD-MySQL-4.013-3.el6.i686
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: perl-DBD-MySQL-4.013-3.el6.i686
--> Running transaction check
---> Package mysql-community-libs-compat.i686 0:5.6.27-2.el6 will be obsoleting
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                       Arch   Version         Repository           Size
================================================================================
Installing:
 mysql-community-libs          i686   5.6.27-2.el6    mysql56-community   1.8 M
     replacing  mysql-libs.i686 5.1.73-3.el6_5
 mysql-community-libs-compat   i686   5.6.27-2.el6    mysql56-community   1.6 M
     replacing  mysql-libs.i686 5.1.73-3.el6_5
 mysql-community-server        i686   5.6.27-2.el6    mysql56-community    52 M
Installing for dependencies:
 mysql-community-client        i686   5.6.27-2.el6    mysql56-community    17 M
 mysql-community-common        i686   5.6.27-2.el6    mysql56-community   307 k
 numactl                       i686   2.0.9-2.el6     base                 69 k

Transaction Summary
================================================================================
Install       6 Package(s)

Total download size: 73 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): mysql-community-client-5.6.27-2.el6.i686.rpm                                                                                                                     |  17 MB     19:38    
(2/6): mysql-community-common-5.6.27-2.el6.i686.rpm                                                                                                                     | 307 kB     00:14    
(3/6): mysql-community-libs-5.6.27-2.el6.i686.rpm                                                                                                                       | 1.8 MB     01:51    
(4/6): mysql-community-libs-compat-5.6.27-2.el6.i686.rpm                                                                                                                | 1.6 MB     02:14    
(5/6): mysql-community-server-5.6.27-2.el6.i686.rpm                                                                                                                     |  52 MB     48:49    
(6/6): numactl-2.0.9-2.el6.i686.rpm                                                                                                                                     |  69 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                           17 kB/s |  73 MB     72:57    
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Retrieving key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
 Userid : MySQL Release Engineering <mysql-build@oss.oracle.com>
 Package: mysql-community-release-el6-5.noarch (installed)
 From   : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : mysql-community-common-5.6.27-2.el6.i686                                                                                                                                    1/7
  Installing : mysql-community-libs-5.6.27-2.el6.i686                                                                                                                                      2/7
  Installing : mysql-community-client-5.6.27-2.el6.i686                                                                                                                                    3/7
  Installing : numactl-2.0.9-2.el6.i686                                                                                                                                                    4/7
  Installing : mysql-community-server-5.6.27-2.el6.i686                                                                                                                                    5/7
  Installing : mysql-community-libs-compat-5.6.27-2.el6.i686                                                                                                                               6/7
  Erasing    : mysql-libs-5.1.73-3.el6_5.i686                                                                                                                                              7/7
  Verifying  : mysql-community-libs-compat-5.6.27-2.el6.i686                                                                                                                               1/7
  Verifying  : mysql-community-common-5.6.27-2.el6.i686                                                                                                                                    2/7
  Verifying  : mysql-community-server-5.6.27-2.el6.i686                                                                                                                                    3/7
  Verifying  : mysql-community-libs-5.6.27-2.el6.i686                                                                                                                                      4/7
  Verifying  : numactl-2.0.9-2.el6.i686                                                                                                                                                    5/7
  Verifying  : mysql-community-client-5.6.27-2.el6.i686                                                                                                                                    6/7
  Verifying  : mysql-libs-5.1.73-3.el6_5.i686                                                                                                                                              7/7

Installed:
  mysql-community-libs.i686 0:5.6.27-2.el6                    mysql-community-libs-compat.i686 0:5.6.27-2.el6                    mysql-community-server.i686 0:5.6.27-2.el6                   

Dependency Installed:
  mysql-community-client.i686 0:5.6.27-2.el6                          mysql-community-common.i686 0:5.6.27-2.el6                          numactl.i686 0:2.0.9-2.el6                         

Replaced:
  mysql-libs.i686 0:5.1.73-3.el6_5                                                                                                                                                             

Complete!
[root@centOS-i386-mini soft]#

分享到:
评论

相关推荐

    CentOS6.5一键安装Mysql5.6

    总结,CentOS 6.5上的一键安装MySQL 5.6涉及了系统更新、依赖安装、MySQL仓库配置、服务安装、配置优化以及安全设置等多个环节。每个步骤都需要仔细操作,确保系统的稳定性和数据库的安全性。通过这个过程,你不仅...

    centos安装mysql5.6.docx

    安装 MySQL 的 yum 源后,我们可以使用以下命令安装 MySQL 5.6: `yum install mysql-community-server -y` 启动 MySQL 并设置开机启动 安装 MySQL 5.6 后,我们需要启动 MySQL 并设置开机启动。可以使用以下命令...

    Linux下【yum】mysql5.6&mysql5;.7 安装包及安装教程

    这段命令会下载并安装MySQL的Yum仓库,使得我们可以从那里获取最新版本的MySQL。 然后,更新Yum缓存,确保我们获取到最新的软件包信息: ```bash sudo yum update ``` 现在,可以安装MySQL 5.6或5.7了。如果你...

    mysql 5.6 yum版 一键安装

    第一步:rpm -ivh mysql-community-...第二步:yum install mysql-community-server mysql 出现询问就按Y mysql即可安装完毕 注意安装的服务名称不是mysql 是mysql的 但是用法一样 root初始密码为空 祝好运!!!!

    RedHat linux 7.5 安装 mysql5.6 超详细步骤.md

    超详细的操作步骤, 在Redhat linux 7.5版本中安装 mysql 5.6版本的...1 卸载已有mysql, 使用yum(附带yum源的设置步骤)安装依赖 2 下载mysql 5.6文件 3 上传文件到linux 4 安装rpm包 5 设置可远程连接 6 随机启动

    mysql5.6安装主从配置

    根据提供的文件信息,本文将详细介绍如何在Linux环境下安装并配置MySQL 5.6的主从复制环境,并且会涉及MySQL数据库的编码格式设置。 ### 一、安装与配置MySQL 5.6 #### 1. 检查系统是否已安装MySQL 在开始安装之前...

    mysql5.6安装包 mysql5.6官网下载的

    1. **添加官方仓库**:使用`apt-get`或`yum`命令添加MySQL官方仓库。 2. **安装MySQL Server**:通过命令行安装MySQL Server。 3. **配置安全设置**:安装完成后,通过`mysql_secure_installation`脚本进行安全性...

    centos7下mysql 5.6离线安装包,附操作手册

    本篇文章将详细讲解如何在CentOS 7上通过离线方式安装MySQL 5.6,以及如何利用附带的操作手册来辅助安装。 首先,我们有"MySQL-5.6.46-1.el7.x86_64.rpm-bundle.tar"这个压缩包,它是MySQL 5.6针对CentOS 7的RPM...

    centos6 安装mysql5.6.x版本

    同时,由于MySQL 5.6.x在CentOS 6的官方仓库中可能不再提供,需要添加第三方软件源如`Epel`仓库。通过运行以下命令安装`epel-release`: ``` sudo yum install epel-release ``` 2. **安装MySQL 5.6.x** 使用`...

    linux安装mysql5.6

    ### Linux上安装MySQL 5.6 的详细步骤与知识点 #### 一、判断是否已安装 MySQL 在开始安装MySQL 5.6之前,首先要检查系统中是否已经安装了MySQL或其他兼容版本,例如MariaDB。 ##### 查看是否已安装MySQL ```bash...

    Mysql 5.6 安装 for Linux 6.9

    在Linux系统上安装MySQL 5.6是一个...这个过程确保了MySQL 5.6在Linux 6.9上的完整安装,涵盖了从环境准备到服务启动的所有关键步骤。安装完成后,你可以开始创建数据库、导入数据,并根据业务需求进行其他配置和优化。

    Centos6 64位一键傻瓜安装mysql5.6.xx

    这包括添加MySQL的官方YUM仓库,设置GPG密钥以验证软件包的完整性,然后使用`yum install`命令进行安装。然而,这个一键安装包已经集成了所有必要的组件和配置,使得整个过程变得更为便捷。 1. **准备工作**:在...

    CentOS 7.2 Yum编译安装MySQL 5.6

    总结起来,通过在CentOS 7.2上使用Yum和SCLo仓库,我们可以顺利地安装并配置MySQL 5.6,同时保持系统的稳定性。这种方法不仅提供了方便的软件管理,还允许我们对数据库服务器进行定制,以满足特定的应用场景需求。在...

    mysql 5.6 教程详解

    此外,官方还提供了对于Yum和APT仓库的支持,这使得在这些操作系统上安装MySQL 5.6变得非常方便。 在服务器管理方面,官方文档提供了关于服务器选项和变量的参考、版本引用、启动和关闭的信息,以及关于信息模式和...

    mysql5.6的安装(多个rpm包yum安装)-详细笔记文档总结

    MySQL 5.6 的安装(多个 rpm 包 yum 安装)详细笔记文档总结 本文档提供了 MySQL 5.6 的安装步骤,包括删除低版本的 MySQL 服务、安装新版本的 MySQL、设置初始密码、登录和退出数据库等。 一、删除低版本的 MySQL...

    MySQL5.6 RPM安装包文件

    1. **下载MySQL 5.6 RPM包**:首先,你需要从官方网站或者可靠的第三方源下载适合你系统的MySQL 5.6 RPM安装包。文件名可能类似于`mysql-community-server-5.6.25-1.el7.x86_64.rpm`。 2. **检查依赖**:在安装前,...

    MySQL5.6的rpm安装包

    MySQL 5.6是MySQL数据库管理系统的一个重要版本,它提供了许多功能增强和性能优化。在Linux环境下,通过RPM(Red Hat Package Manager)包管理器进行安装是一种常见且简便的方法。RPM包是预编译的软件包,适用于基于...

    MySQL5.6安装包及教程.rar

    MySQL 5.6不是CentOS默认仓库中的最新版本,因此我们需要添加MySQL的官方YUM仓库。下载并安装MySQL社区服务器的GPG密钥: ``` sudo rpm --import ...

    mysql5.6编译安装

    MySQL 5.6的构建需要CMake,可以从官方网站下载最新版本的源代码,例如`cmake-2.8.4.tar.gz`。解压后,按照以下步骤安装:`./bootstrap`、`make`、`make install`。 5. **下载并编译MySQL 5.6.14**: 使用`wget`...

    mysql5.6手册英文版本

    MySQL 5.6 适用于多种应用场景,包括 Web 应用、数据仓库、业务关键型应用等。 #### 二、文档结构与范围 ##### 2.1 文档结构 - **Abstract**: 概述了本手册涵盖的主要内容,包括 MySQL 5.6 和 MySQL Cluster NDB ...

Global site tag (gtag.js) - Google Analytics