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

终于再也没看到那个可恶的包依赖了。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值