How to Install MySQL Database Server on CentOS 6.2

In this post, i will show you on how to install MySQL server using yum command. Assume that you have installed minimal installation type CentOS 6.2 and has setup your own local yum repository. You can use internet CentOS yum repository instead if you have direct internet connection to your server.

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on CentOS 6.2

    [root@centos6 ~]# yum install mysql mysql-server
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql.i686 0:5.1.52-1.el6_0.1 will be installed
    ---> Package mysql-server.i686 0:5.1.52-1.el6_0.1 will be installed
    --> Processing Dependency: perl-DBI for package: mysql-server-5.1.52-1.el6_0.1.i686
    --> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.52-1.el6_0.1.i686
    --> Processing Dependency: perl(DBI) for package: mysql-server-5.1.52-1.el6_0.1.i686
    --> Running transaction check
    ---> Package perl-DBD-MySQL.i686 0:4.013-3.el6 will be installed
    ---> Package perl-DBI.i686 0:1.609-4.el6 will be installed
    --> Finished Dependency Resolution
    Dependencies Resolved
     Package                Arch         Version                  Repository                    Size
     mysql                  i686         5.1.52-1.el6_0.1         CentOS6.2-Repository         898 k
     mysql-server           i686         5.1.52-1.el6_0.1         CentOS6.2-Repository         8.3 M
    Installing for dependencies:
     perl-DBD-MySQL         i686         4.013-3.el6              CentOS6.2-Repository         134 k
     perl-DBI               i686         1.609-4.el6              CentOS6.2-Repository         705 k
    Transaction Summary
    Install       4 Package(s)
    Total download size: 10 M
    Installed size: 27 M
    Is this ok [y/N]: y
    Downloading Packages:
    Total                                                             13 MB/s |  10 MB     00:00
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : perl-DBI-1.609-4.el6.i686                                                     1/4
      Installing : perl-DBD-MySQL-4.013-3.el6.i686                                               2/4
      Installing : mysql-5.1.52-1.el6_0.1.i686                                                   3/4
      Installing : mysql-server-5.1.52-1.el6_0.1.i686                                            4/4
      mysql.i686 0:5.1.52-1.el6_0.1               mysql-server.i686 0:5.1.52-1.el6_0.1
    Dependency Installed:
      perl-DBD-MySQL.i686 0:4.013-3.el6                  perl-DBI.i686 0:1.609-4.el6

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>