在centos上配置lamp环境时,系统中已存在了mysql5.5,需要在不重新安装mysql的前提下配置好lamp环境,中间遇到了php-mysql扩展无法安装的情况。
使用yum安装php-mysql扩展,提示同时需要mysql-lib依赖,但是在 Transaction Check
时就会报错:
Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.5.27-1.rhel5.x86_64
原因是mysql-libs-5.1.73-5.el6_6.x86_64
与MySQL-server-5.5.27-1.rhel5.x86_64
的版本冲突。