centos 5.5 x64 + mysql5.5 + php5.2 yum安装过程


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 ~]# 


如此,完成全部升级过程~~

 
  
 
 

你可能感兴趣的:(总结归档,mysql,centos,php,processing,phpmyadmin,plugins)