How to Install MySQL Database in Linux Using Yum

Share this Article :

I will show you how to install MySQL database server in Linux CentOS using yum command. It very straight forward and easy as long as your server connected directly to internet

    [[email protected] tmp]# yum install mysql-server
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: ftp.oss.eznetsols.org
     * base: ftp.oss.eznetsols.org
     * epel: bali.idrepo.or.id
     * extras: ftp.oss.eznetsols.org
     * updates: ftp.oss.eznetsols.org
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-server.x86_64 0:5.0.77-4.el5_5.4 set to be updated
    --> Processing Dependency: mysql = 5.0.77-4.el5_5.4 for package: mysql-server
    --> Processing Dependency: perl-DBD-MySQL for package: mysql-server
    --> Running transaction check
    ---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated
    ---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package              Arch         Version                  Repository     Size
    ================================================================================
    Installing:
     mysql-server         x86_64       5.0.77-4.el5_5.4         updates       9.8 M
    Installing for dependencies:
     perl-DBD-MySQL       x86_64       3.0007-2.el5             base          148 k
    Updating for dependencies:
     mysql                x86_64       5.0.77-4.el5_5.4         updates       4.8 M
    
    Transaction Summary
    ================================================================================
    Install       2 Package(s)
    Upgrade       1 Package(s)
    
    Total download size: 15 M
    Is this ok [y/N]: y
    Downloading Packages:
    
    (1/3): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm            | 148 kB     00:17
    (2/3): mysql-5.0.77-4.el5_5.4.x86_64.rpm                 | 4.8 MB     06:40
    (3/3): mysql-server-5.0.77-4.el5_5.4.x86_64.rpm          | 9.8 MB     15:12
    --------------------------------------------------------------------------------
    Total                                            11 kB/s |  15 MB     22:20
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating       : mysql                                                    1/4
      Installing     : perl-DBD-MySQL                                           2/4
      Installing     : mysql-server                                             3/4
      Cleanup        : mysql                                                    4/4
    
    Installed:
      mysql-server.x86_64 0:5.0.77-4.el5_5.4
    
    Dependency Installed:
      perl-DBD-MySQL.x86_64 0:3.0007-2.el5
    
    Dependency Updated:
      mysql.x86_64 0:5.0.77-4.el5_5.4
    
    Complete!
    


Leave a Reply