PHP mysqlnd/MySQL version

560

I've got an old machine running PHP 5.3.8 & MySQL 5.5.23 (found via mysql's "select version()" command). However, PHP's mysqlnd driver indicates MySQL 5.0.8. What gives?

I know PHP on this machine needs to be upgraded, could that be the issue? Does mysqlnd get upgraded to support "newer" MySQL versions when PHP is upgraded? Thanks!

475

Answer

Solution:

I had the same question and found the answer. mysqlnd version numbers are not in line with mysql version numbers. More information on php.net: http://php.net/manual/en/mysqlnd.plugin.obtaining.php

It looks like mysqlnd is not hooked up to a specific mysql version. For instance: https://github.com/php/php-src/blob/master/ext/mysqlnd/mysqlnd.c#L2799

People are also looking for solutions to the problem: Java Can't Connect To PHP Web Service

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.