1、yum mysql5.5安裝過程的參考地址
參考地址
http://www.webtatic.com/packages/mysql55/
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum install libmysqlclient15 --enablerepo=webtatic
yum remove mysql mysql-*
yum install mysql55 mysql55-server --enablerepo=webtatic
service mysqld start
mysql_upgrade
注意部分
原有
libmysqlclient15
改成libmysqlclient16
原來默認使用yum install mysql方式安裝了數據庫,現在通過yum remove mysql方式卸載數據庫了
2、yum安裝php 5.2
參考地址
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
這些操作基本通過之後,證明服務已經安排完成
3、遇到的問題
# rpm -qa |grep php
php-common-5.1.6-15.el5.i386
php-cli-5.1.6-15.el5.i386
php-5.1.6-15.el5.i386
php-pdo-5.1.6-15.el5.i386
php-bcmath-5.1.6-15.el5.i386
php-ldap-5.1.6-15.el5.i386
php-devel-5.1.6-15.el5.i386
php-gd-5.1.6-15.el5.i386
php-xml-5.1.6-15.el5.i386
php-mbstring-5.1.6-15.el5.i386
php-mysql-5.1.6-15.el5.i386
php-dba-5.1.6-15.el5.i386
打開原來好用phpmyadmin應用時,報錯
對比之後,沒有安裝
php-mysql-5.1.6-15.el5.i386
[root@SNDA-192-168-14-9 ~]# yum install php-mysql-5.2*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86_64 0:5.2.17-jason.2 set to be updated
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: php-mysql
--> Running transaction check
---> Package mysql.x86_64 0:5.1.58-jason.1 set to be updated
--> Processing Conflict: mysql55 conflicts mysql < 5.5.10
--> Finished Dependency Resolution
mysql55-5.5.10-1.w5.x86_64 from installed has depsolving problems
--> mysql55 conflicts with mysql
Error: mysql55 conflicts with mysql
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
google找了很長時間,最後突然想起一個方式
yum install libmysqlclient15 --enablerepo=webtatic
yum install libmysqlclient16 --enablerepo=webtatic
[root@SNDA-192-168-14-9 ~]# yum install libmysqlclient16 --enablerepo=webtatic
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
webtatic | 951 B 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libmysqlclient16.x86_64 0:5.1.54-1.w5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
libmysqlclient16 x86_64 5.1.54-1.w5 webtatic 1.4 M
Transaction Summary
===================================================================================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
libmysqlclient16-5.1.54-1.w5.x86_64.rpm | 1.4 MB 00:07
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libmysqlclient16 1/1
Installed:
libmysqlclient16.x86_64 0:5.1.54-1.w5
Complete!
[root@SNDA-192-168-14-9 ~]# rpm -Va --nofiles --nodigest php-mysql.x86_64 0:5.2.17-jason.2
[root@SNDA-192-168-14-9 ~]# rpm -ivh http://www.jasonlitka.com/media/EL5/x86_64/php-mysql-5.2.17-jason.2.x86_64.rpm --nofiles
Retrieving http://www.jasonlitka.com/media/EL5/x86_64/php-mysql-5.2.17-jason.2.x86_64.rpm
Preparing... ########################################### [100%]
1:php-mysql ########################################### [100%]
[root@SNDA-192-168-14-9 ~]# service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@SNDA-192-168-14-9 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@SNDA-192-168-14-9 ~]#
如此,完成全部升級過程~~