How to Install MySQL Database in Linux Using Yum

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

    [root@myserver tmp]# yum install mysql-server
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons:
     * base:
     * epel:
     * extras:
     * updates:
    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
     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
      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
Leave a Reply

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

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee