How to install MySQL 5.6 in Red Hat Enterprise Linux 6 ?

Solution Verified - Updated -

Environment

  • Red Hat Enterpise Linux 6.x
  • Red Hat Software Collections

Issue

  • Need to install MySQL 5.6 on RHEL 6
  • Is MySQL is supported by Red Hat? Is MySQL is available in Red Hat Software Collections?
  • How to install mysql56 (mysql 5.6)

Resolution

  • MySQL 5.6 is not available in RHEL 6.6 base channels /repositories but it is a part of Red Hat Software Collections.
    First, attach the subscriptions to the system to obtain the MySQL 5.6
# subscription-manager list --available --all

Then attach the subscription using POOL ID:

# subscription-manager attach --pool=RHSCL-POOL-ID

Enable the RHSCL repo with the command:

# subscription-manager repos --list | egrep rhscl
# subscription-manager repos --enable rhel-server-rhscl-6-rpms
# subscription-manager repos --enable rhel-6-server-optional-rpms

The name of the package to install is rh-mysql56
Proceed further with installation of the package with,

# yum install rh-mysql56

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments