解决CentOS 更新php53时,mysql错误

1、首先把原本的PHP版本删除

# yum remove php*

2、查看一下是否删除

# rpm -q php

删除成功:package php is not installed

3、安装PHP53

扫描二维码关注公众号,回复: 717924 查看本文章

# yum -y install php53*

注意:

php53-odbc64-5.3.3-2.el5.x86_64 from base has depsolving problems

  --> php53-odbc64 conflicts with php53-odbc

 Error: php53-odbc64 conflicts with php53-odbc

  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.

# yum -y install php53* --skip-broken

安装成功会最后出现Complete!

4、查看PHP版本

# rpm -q php53

 php53-5.3.3-13.el5_8

5、启动PHP与MYSQL

# service httpd start

# service mysqld start

猜你喜欢

转载自friping.iteye.com/blog/1901049