Tuesday, July 31, 2012

How to Install MySQL 5.5.25a and PHP 5.3 on Centos 6.2



Remove existing MySQL version,mysql-libs,php-mysql


Download the version 6 remi-release and Install


wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6-1.el6.remi.noarch.rpm

rpm -Uvh remi-release-6-1.el6.remi.noarch.rpm --nodeps

Download and Install MySQL RPM at http://dev.mysql.com/downloads/mysql/#downloads


wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/




rpm -ivh MySQL-server-5.5.25a-1.el6.x86_64.rpm MySQL-client-5.5.25a-1.el6.x86_64.rpm MySQL-devel-5.5.25a-1.el6.x86_64.rpm MySQL-shared-5.5.25a-1.el6.x86_64.rpm

Install the mysql-libs php-mysql via yum


yum --enablerepo=remi install mysql-libs




yum --enablerepo=remi install php-mysql


Note : if its asking for some dependencies just install it.

No comments:

The On Demand Global Workforce - oDesk
Google