无法在Centos上安装php mysqli扩展
我正在尝试将mysqli扩展安装到php无法在Centos上安装php mysqli扩展,php,mysql,mysqli,centos,Php,Mysql,Mysqli,Centos,我正在尝试将mysqli扩展安装到php yum install php-mysqli 我得到了下一个错误 ... Transaction Check Error: file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136
yum install php-mysqli
我得到了下一个错误
...
Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.71-1.el6.x86_64 conflicts with file from package MySQL55-server-5.5.34-2.cp1136.x86_64
file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.1.71-
...
(日志继续)
没有安装mysqli包,我可以通过
php -m | grep mysqli
它什么也不返回…最后,我在WHM中使用EasyApache重新编译了apache,在“穷举选项列表”中选择了选项MySQLiCentOS 6.5 64位 1-找到mysqli
/usr/lib64/php/modules/mysqli.so
2-编辑php.ini添加
extension=pathroyourfile
3-重新启动apache我终于为任何一个可能与php7有相同问题但没有mysqli的人找到了答案
yum remove ea-php54-php ea-php54-php-debuginfo ea-php55-php ea-php55-php-debuginfo解决冲突。将MySQL服务器升级到5.5。或者在5.1版本上查找mysqli的发行版升级服务器不会对我当前的安装造成问题?我正在寻找一种升级客户端的方法,我想谢谢!这对我在Centos 6.4上使用WHM和EasyApache 3非常有效。首先,我必须安装php mysqli,然后在运行sudo find/-name mysqli*2>/dev/null的服务器上找到mysqli.so