I have just installed PHP 5.1.4 and mySQL 4.1.7. Mysql functions such as myslq_connect() work fine. Mysqli functions do not seem able to access the database. The php.ini file has been edited to include "extensions=php_mysql.dll" and "extensions=php_mysqli.dll". Both the php_mysql.dll and php_mysqli.dll are in the php\ext\ folder which extension_dir points toward. I placed libmysql.dll in the windows system folder as well as left a copy it in the php root directory, which is added in the path under windows environmental variables. There is no libmysqli.dll file but the documentation on PHP's Mysqli manual say this is not needed.
When I try to connect using mysqli_connect() I get "Can't connect to MySQL Server. Errorcode: Can't connect to MySQL server on 'localhost' (10061)." I am certain that the user, host, password and database names are correct and can connect using them using mysql_connect() or directly from the command line.
Any ideas? Thanks in advance.
|