Mar 12th, 2010, 7:45 AM
(This post was last modified: Mar 12th, 2010, 7:59 AM by pinkfrankenstein.)
I don't know the correct technical terms, but in the installation script the PHP command:
Only gets the version of mysqlnd which is part of PHP and not MySQL.
Thus the script returns:
MySql - mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ FAIL
No matter what version of MySQL is installed. This happens with PHP 5.3 on OS X Snow Leopard.
In order to get the MySQL version, would need something like this:
Code:
mysql_get_client_info()
Only gets the version of mysqlnd which is part of PHP and not MySQL.
Thus the script returns:
MySql - mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ FAIL
No matter what version of MySQL is installed. This happens with PHP 5.3 on OS X Snow Leopard.
In order to get the MySQL version, would need something like 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());
?>