Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 05:38:45 PM

Pages: [1]   Go Down
  Print  
Author Topic: update from mysql4.1 to mysql5  (Read 1062 times)
tafx
Newbie
*
Offline Offline

Posts: 3


« on: February 11, 2009, 09:59:05 AM »

i ve read many posts how to use ssh and update php4 to php5 ,

well this is ok , i could update php4 to php5

but there is no instruction how to update mysql4.1 to mysql5

these steps were what if found and did but my mysql client and api version iare still 4.1 my php version is updated correctly to 5.2.8.   please anyone who could give me a instruction.

here what i did:

rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
rpm -ivh --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm

rpm -ivh http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/atomic-release-1.0-10.el4.art.noarch.rpm
rpm --nodeps -e php-domxml

yum update php*
yum update mysql*
yum install php-xml

rpm -e `rpm -aq | grep yum`

################# changes in files #################################

-replace /etc/my.cnf with /etc/my.cnf.rpmnew
-replace /etc/php.ini with /etc/php.ini.rpmnew
-reboot server
########################## end ###################################
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #1 on: February 11, 2009, 11:28:39 PM »

Hello Tafx,

I wouldn't worry about mysql API version 4 showed for mysql module in PHP. It was left in PHP rpms you installed to leave backward compatibility with other server components as Centos 4 uses Mysql 4 branch. If you really want to upgrade the API mentioned for a some reason, you will need to rebuild PHP rpms on your server. Please advise if you have any further questions.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: