Database

Installing MySQL 5.6 using the MySQL yum repository

mysql-logo Oracle has released a MySQL Yum repository to make installing and updating MySQL server easier. Initially it supports these Linux distributions:

  • Red Hat/Oracle Enterprise Linux/CentOS 6
  • Fedora 18 and 19

The MySQL Yum repository contains these main packages:

  • MySQL Community 5.6
  • MySQL Workbench
  • MySQL Connector / ODBC

Installing MySQL 5.6 with the MySQL Yum repository

  1. Download the MySQL Yum repository from: http://dev.mysql.com/downloads/repo/
  2. The download is an RPM file for installing the MySQL Yum repository. Install it with:
    • For Red Hat/Oracle Enterprise Linux/CentOS 6: [root@ezylinux ~]# rpm -ivh mysql-community-release-el6-3.noarch.rpm
    • For Fedora 18: [root@ezylinux ~]# rpm -ivh mysql-community-release-fc18-3.noarch.rpm
    • For Fedora 19: [root@ezylinux ~]# rpm -ivh mysql-community-release-fc19-3.noarch.rpm
  3. Install MySQL server from the Yum repository. [root@ezylinux ~]# yum install mysql-server

Tips To install other packages, check the package list with:

[root@ezylinux ~]# yum --disablerepo=\* --enablerepo=mysql-community list available

Output:

Loaded plugins: fastestmirror, presto
Determining fastest mirrors
mysql-community                                                       | 2.9 kB     00:00
mysql-community/primary_db                                            |  19 kB     00:00
Available Packages
mysql-community-client.x86_64                      5.6.14-3.el6               mysql-community
mysql-community-common.i686                        5.6.14-3.el6               mysql-community
mysql-community-common.x86_64                      5.6.14-3.el6               mysql-community
mysql-community-devel.i686                         5.6.14-3.el6               mysql-community
mysql-community-devel.x86_64                       5.6.14-3.el6               mysql-community
mysql-community-embedded.i686                      5.6.14-3.el6               mysql-community
mysql-community-embedded.x86_64                    5.6.14-3.el6               mysql-community
mysql-community-embedded-devel.i686                5.6.14-3.el6               mysql-community
mysql-community-embedded-devel.x86_64              5.6.14-3.el6               mysql-community
mysql-community-libs.i686                          5.6.14-3.el6               mysql-community
mysql-community-libs.x86_64                        5.6.14-3.el6               mysql-community
mysql-community-libs-compat.i686                   5.6.14-3.el6               mysql-community
mysql-community-libs-compat.x86_64                 5.6.14-3.el6               mysql-community
mysql-community-server.x86_64                      5.6.14-3.el6               mysql-community
mysql-community-test.x86_64                        5.6.14-3.el6               mysql-community
mysql-connector-odbc.x86_64                        5.2.6-1.el6                mysql-community
mysql-workbench-community.x86_64                   6.0.8-1.el6                mysql-community
EOF.← Back to articles