How to Install MySQL Server on RHEL 6

In this post i will show you on how to install MySQL server on Redhat Enterprise Linux 6 (RHEL 6). MySQL server is a popular choice of database server that can stores and retrieves data for the blog, websites and applications. This post assumed that you have set up local yum repository using your DVDROM. If you haven’t set up the local yum repository, please proceed to this steps :

Simply run this command to install MySQL server :

[root@rhel6 ~]# yum install mysql mysql-server -y
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.1.47-4.el6 set to be updated
---> Package mysql-server.i686 0:5.1.47-4.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch           Version                 Repository                      Size
====================================================================================================
Installing:
 mysql                  i686           5.1.47-4.el6            DVD-RHEL6-Repository           898 k
 mysql-server           i686           5.1.47-4.el6            DVD-RHEL6-Repository           8.3 M

Transaction Summary
====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 9.1 M
Installed size: 25 M
Downloading Packages:
----------------------------------------------------------------------------------------------------
Total                                                                38 MB/s | 9.1 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysql-5.1.47-4.el6.i686                                                      1/2
  Installing     : mysql-server-5.1.47-4.el6.i686                                               2/2

Installed:
  mysql.i686 0:5.1.47-4.el6                     mysql-server.i686 0:5.1.47-4.el6

Complete!