Mar 12th, 2010, 7:37 AM
(This post was last modified: Mar 12th, 2010, 7:56 AM by pinkfrankenstein.)
OK, I found an answer to my problem. The PHP command:
mysql_get_client_info()
returns the version of mysqlnd which is like a PHP plugin (sort of) and not the version of MySQL running on the Macintosh. I'm currently running PHP 5.3, I don't know if this is changed in later versions.
So no matter what version of MySQL you are running, this value of "mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $" will always be returned.
In order to determine the version of MySQL you have to run this:
Best just to comment out the piece of script that seeks to verify the version as mentioned above.
mysql_get_client_info()
returns the version of mysqlnd which is like a PHP plugin (sort of) and not the version of MySQL running on the Macintosh. I'm currently running PHP 5.3, I don't know if this is changed in later versions.
So no matter what version of MySQL you are running, this value of "mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $" will always be returned.
In order to determine the version of MySQL you have to run this:
Code:
<?php
$link = mysql_connect('localhost', 'user', 'pword');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
printf("MySQL server version: %s\n", mysql_get_server_info());
?>
Best just to comment out the piece of script that seeks to verify the version as mentioned above.