简体   繁体   English

PHP mysqlnd / MySQL版本

[英]PHP mysqlnd/MySQL version

I've got an old machine running PHP 5.3.8 & MySQL 5.5.23 (found via mysql's "select version()" command). 我有一台运行PHP 5.3.8和MySQL 5.5.23的旧机器(通过mysql的“ select version()”命令找到)。 However, PHP's mysqlnd driver indicates MySQL 5.0.8. 但是,PHP的mysqlnd驱动程序指示MySQL 5.0.8。 What gives? 是什么赋予了?

I know PHP on this machine needs to be upgraded, could that be the issue? 我知道这台计算机上的PHP需要升级,这可能是问题吗? Does mysqlnd get upgraded to support "newer" MySQL versions when PHP is upgraded? 升级PHP时,mysqlnd是否会升级为支持“较新的” MySQL版本? Thanks! 谢谢!

I had the same question and found the answer. 我有同样的问题,找到了答案。 mysqlnd version numbers are not in line with mysql version numbers. mysqlnd版本号与mysql版本号不一致。 More information on php.net: http://php.net/manual/en/mysqlnd.plugin.obtaining.php 有关php.net的更多信息: http : //php.net/manual/en/mysqlnd.plugin.obtaining.php

It looks like mysqlnd is not hooked up to a specific mysql version. 看起来mysqlnd没有连接到特定的mysql版本。 For instance: https://github.com/php/php-src/blob/master/ext/mysqlnd/mysqlnd.c#L2799 例如: https : //github.com/php/php-src/blob/master/ext/mysqlnd/mysqlnd.c#L2799

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM