mysqlnd
is a library that can be used with PHP 5.3 instead of libmysql
, through three PHP extensions:
mysql
, which provides mysql_*
functions,mysqli
, which provides mysqli_*
functions,- and
pdo_mysql
, which allows you to use PDO with a MySQL database.
mysqlnd
itself does not export any function that you can use from your PHP scripts: it only provides MySQL connectivity to these 3 extensions - these are those that export functions that you can use.
If you want to use the mysql_*
functions, you have to make sure that the mysql
extension is enabled , with something that should look like this in one of the .ini
files processed by PHP
extension=mysql.dll
As a side element: mysql_*
functions mysql_*
no longer be used, especially for new projects: the mysql
extension is old and does not allow you to use the latest (well, not the last, actually) MySQL functions.
Instead, you should use mysqli or PDO.
source share