Installing MySQL Database Server On CentOS6

FREQUENTLY ASKED QUESTIONS (MySQL)
Q: How do i install MySQL server from YUM on CentOS Linux Server?

Installing/Setup MySQL Database Server on CentOS6 Linux. The command is same for all CentOS versions like CentOS5, CentOS4, etc.

[root@server ~]# yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile

 * base: centos.01link.hk
 * extras: centos.01link.hk
 * updates: centos.aol.in
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.61-4.el6 set to be updated
--> Processing Dependency: mysql = 5.1.61-4.el6 for package: mysql-server-5.1.61-4.el6.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.61-4.el6.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.61-4.el6.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.61-4.el6.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.61-4.el6 set to be updated
--> Processing Dependency: mysql-libs = 5.1.61-4.el6 for package: mysql-5.1.61-4.el6.x86_64
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 set to be updated
---> Package perl-DBI.x86_64 0:1.609-4.el6 set to be updated
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.61-4.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
 Package                        Arch                   Version                       Repository            Size
========================================================================
Installing:
 mysql-server               x86_64                 5.1.61-4.el6                  base                 8.6 M
Installing for dependencies:
 mysql                          x86_64                 5.1.61-4.el6                  base                 882 k
 perl-DBD-MySQL     x86_64                 4.013-3.el6                   base                 134 k
 perl-DBI                     x86_64                 1.609-4.el6                   base                 705 k
Updating for dependencies:
 mysql-libs                    x86_64                 5.1.61-4.el6                  base                 1.2 M

Transaction Summary
========================================================================
Install       4 Package(s)
Upgrade       1 Package(s)

Total download size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): mysql-5.1.61-4.el6.x86_64.rpm                                                        | 882 kB     00:06
(2/5): mysql-libs-5.1.61-4.el6.x86_64.rpm                                                  | 1.2 MB     00:15
(3/5): mysql-server-5.1.61-4.el6.x86_64.rpm                                              | 8.6 MB     01:01
(4/5): perl-DBD-MySQL-4.013-3.el6.x86_64.rpm                                     | 134 kB     00:00
(5/5): perl-DBI-1.609-4.el6.x86_64.rpm                                                     | 705 kB     00:04
------------------------------------------------------------------------------------------------------------
Total                                                                           129 kB/s |  11 MB     01:30
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
base/gpgkey                                                                              | 3.3 kB     00:00 ...
Importing GPG key 0xC105B9DE "CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : mysql-libs-5.1.61-4.el6.x86_64                                                           1/6
  Installing     : perl-DBI-1.609-4.el6.x86_64                                                                2/6
  Installing     : perl-DBD-MySQL-4.013-3.el6.x86_64                                                 3/6
  Installing     : mysql-5.1.61-4.el6.x86_64                                                                     4/6
  Installing     : mysql-server-5.1.61-4.el6.x86_64                                                          5/6
  Cleanup        : mysql-libs-5.1.47-4.el6.x86_64                                                            6/6

Installed:
  mysql-server.x86_64 0:5.1.61-4.el6

Dependency Installed:
  mysql.x86_64 0:5.1.61-4.el6      perl-DBD-MySQL.x86_64 0:4.013-3.el6      perl-DBI.x86_64 0:1.609-4.el6

Dependency Updated:
  mysql-libs.x86_64 0:5.1.61-4.el6

Complete!

Verify the Installed package
[root@server ~]# rpm -q mysql
mysql-5.1.61-4.el6.x86_64

After installing MySQL packages, click for Setting up MySQL database 

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons