mysql升级后php无法使用

mysql用jason的源后,虽然可以直接yum到5.5了,但是php-mysql无法使用了
总是无法update到对应的依赖包。
错误如下:
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.2.17-jason.2 set to be updated
--> Processing Dependency: libmysqlclient.so.16 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql
--> Running transaction check
---> Package mysql.i386 0:5.1.58-jason.1 set to be updated
--> Processing Conflict: mysql55 conflicts mysql < 5.5.28
--> Finished Dependency Resolution
mysql55-5.5.28-1.w5.i386 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


谷歌了好久,得到的方案是,把php和mysql相关的都删除了,然后切换一个源,重新安装php和mysql
删除php内容

rpm -qa|grep mysql
rpm -qa|grep php
把看到的内容都删除了
yum remove php-*
yum remove mysql
yum erase mysql-libs

切换源
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
安装mysql
yum --enablerepo=remi,remi-test install mysql mysql-server
yum --enablerepo=remi,remi-test install php
yum --enablerepo=remi,remi-test install php-mysql

终于再也没看到那个可恶的包依赖了。

你可能感兴趣的:(mysql)