是什么真正导致PHP MySQL库版本与MySQL服务器版本不同? [英] What really causes PHP MySQL library version differs from your MySQL server version?

查看:83
本文介绍了是什么真正导致PHP MySQL库版本与MySQL服务器版本不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此消息出现在PhpMyAdmin中.通常在进行一些更新之后.

This message appears in PhpMyAdmin. Often after some update.

已经有很多类似的问题.一种典型的答案是更新您的库". 但是最后,我仍然看到很多无法解决问题的人. (包括我自己)

There are already a lot of similar questions. One typical answer is "update your libs". But in the end I still see a lot of people who can't solve it. (myself included)

我尝试从头开始重新安装所有内容,但仍然存在,并且出现此确切版本错误:

I've tried to reinstall everything from scratch but it's still there and I get this exact version error:

您的PHP MySQL库版本5.5.34与您的MySQL服务器不同 版本5.1.69.

Your PHP MySQL library version 5.5.34 differs from your MySQL server version 5.1.69.

我已经添加了我的包裹清单的输出.一切看起来都正确.还是我想.我不知道此5.1.69版本的来源.我对linux/服务器设置不了解.

I've added the output of my packages list. Everything looks correct. Or so I think. I don't understand where this 5.1.69 version comes from. I don't have much knowledge of linux / server setup.

是否有任何可以帮助您的Linux/服务器向导?谢谢:)

Is there any linux/server wizard who can help? thank you : )

[root @ server bin]#已安装百胜列表| grep mysql

[root@server bin]# yum list installed | grep mysql

@remi compat-mysql51.x86_64 5.1.54-1.el6.remi
@remi mysql.x86_64 5.5.34-1.el6.remi
@remi mysql-libs.x86_64 5.5.34-1.el6.remi
@remi mysql-server.x86_64 5.5.34-1.el6.remi
@remi php-mysql.x86_64 5.4.20-1.el6.remi

@remi compat-mysql51.x86_64 5.1.54-1.el6.remi
@remi mysql.x86_64 5.5.34-1.el6.remi
@remi mysql-libs.x86_64 5.5.34-1.el6.remi
@remi mysql-server.x86_64 5.5.34-1.el6.remi
@remi php-mysql.x86_64 5.4.20-1.el6.remi

[root @ server bin]#已安装百胜列表| grep php

[root@server bin]# yum list installed | grep php

@remi php.x86_64 5.4.20-1.el6.remi
@remi php-bcmath.x86_64 5.4.20-1.el6.remi
@remi php-cli.x86_64 5.4.20-1.el6.remi
@remi php-common.x86_64 5.4.20-1.el6.remi
@remi php-fpm.x86_64 5.4.20-1.el6.remi
@remi php-gd.x86_64 5.4.20-1.el6.remi
@remi php-imap.x86_64 5.4.20-1.el6.remi
@remi php-ldap.x86_64 5.4.20-1.el6.remi
@remi php-magickwand.x86_64 1.0.9.2-4.el6.remi
@remi php-magpierss.noarch 0.72-6.el6
@epel php-mbstring.x86_64 5.4.20-1.el6.remi
@remi php-mcrypt.x86_64 5.4.20-1.el6.remi
@remi php-mssql.x86_64 5.4.20-1.el6.remi
@remi php-mysql.x86_64 5.4.20-1.el6.remi
@remi php-odbc.x86_64 5.4.20-1.el6.remi
@remi php-pdo.x86_64 5.4.20-1.el6.remi
@remi php-pear.noarch 1:1.9.4-12.el6.remi.1
@remi php-php-gettext.noarch 1.0.11-4.el6.remi
@remi php-recode.x86_64 5.4.20-1.el6.remi
@remi php-shout.x86_64 0.9.2-9.el6.remi
@remi php-snmp.x86_64 5.4.20-1.el6.remi
@remi php-soap.x86_64 5.4.20-1.el6.remi
@remi php-tcpdf.noarch 6.0.031-1.el6.remi
@remi php-tcpdf-dejavu-sans-fonts.noarch 6.0.031-1.el6.remi
@remi php-tidy.x86_64 5.4.20-1.el6.remi
@remi php-xml.x86_64 5.4.20-1.el6.remi
@remi php-xmlrpc.x86_64 5.4.20-1.el6.remi
@remi phpMyAdmin.noarch 4.0.6-1.el6.remi

@remi php.x86_64 5.4.20-1.el6.remi
@remi php-bcmath.x86_64 5.4.20-1.el6.remi
@remi php-cli.x86_64 5.4.20-1.el6.remi
@remi php-common.x86_64 5.4.20-1.el6.remi
@remi php-fpm.x86_64 5.4.20-1.el6.remi
@remi php-gd.x86_64 5.4.20-1.el6.remi
@remi php-imap.x86_64 5.4.20-1.el6.remi
@remi php-ldap.x86_64 5.4.20-1.el6.remi
@remi php-magickwand.x86_64 1.0.9.2-4.el6.remi
@remi php-magpierss.noarch 0.72-6.el6
@epel php-mbstring.x86_64 5.4.20-1.el6.remi
@remi php-mcrypt.x86_64 5.4.20-1.el6.remi
@remi php-mssql.x86_64 5.4.20-1.el6.remi
@remi php-mysql.x86_64 5.4.20-1.el6.remi
@remi php-odbc.x86_64 5.4.20-1.el6.remi
@remi php-pdo.x86_64 5.4.20-1.el6.remi
@remi php-pear.noarch 1:1.9.4-12.el6.remi.1
@remi php-php-gettext.noarch 1.0.11-4.el6.remi
@remi php-recode.x86_64 5.4.20-1.el6.remi
@remi php-shout.x86_64 0.9.2-9.el6.remi
@remi php-snmp.x86_64 5.4.20-1.el6.remi
@remi php-soap.x86_64 5.4.20-1.el6.remi
@remi php-tcpdf.noarch 6.0.031-1.el6.remi
@remi php-tcpdf-dejavu-sans-fonts.noarch 6.0.031-1.el6.remi
@remi php-tidy.x86_64 5.4.20-1.el6.remi
@remi php-xml.x86_64 5.4.20-1.el6.remi
@remi php-xmlrpc.x86_64 5.4.20-1.el6.remi
@remi phpMyAdmin.noarch 4.0.6-1.el6.remi

我正在运行的配置是 CentOs 6.4 nginx/1.4.2 数据库客户端版本:libmysql-5.5.34 PHP扩展名:mysqli 通过UNIX套接字本地主机

The configuration I'm running is CentOs 6.4 nginx/1.4.2 Database client version: libmysql - 5.5.34 PHP extension: mysqli Localhost via UNIX socket

推荐答案

您的php-mysql软件包已与较旧的MySQL客户端库链接.强烈建议安装php-mysqlnd,请参见 http://www.webtatic.com/packages/php54/.然后重新启动您的Web服务器.

Your php-mysql package has been linked against an older MySQL client library. It's strongly suggested to install php-mysqlnd, see http://www.webtatic.com/packages/php54/. Then restart your web server.

这篇关于是什么真正导致PHP MySQL库版本与MySQL服务器版本不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆