Jump to content

Archived

This topic is now archived and is closed to further replies.

kusal

what is the driver?

Recommended Posts

what is the driver used in "mysql_connect" function when connecting to the MySql database ???

Share this post


Link to post
Share on other sites
Well its not a driver but an extension, For PHP4 its bultin, but for PHP5 its is php_mysql.dll, however php_mysql.dll requires a file called libmysql.dll in order for the mysql extension to function. In order to use the mysql functions you'll need to enable the mysql extension for PHP5. If you are on Windows and have PHP5, [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this thread[/url] might be able to help you. However with other OS's you'll need to compile PHP with the mysql extension.

Share this post


Link to post
Share on other sites
so what about these things like ODBC myODBC JDBC??? what are these??? why don't we use them ???

Share this post


Link to post
Share on other sites
Well you can use those, but PHP has dedicated functions for connecting to mysql. But in order to use them you'll need to compile/enable the mysql extension. If you want to use ODCB, or any of the other DBC drivers you dont use the mysql functions, but the functions for the DBC driver.

For a list of MySQL DBC drivers you can see them on [url=http://dev.mysql.com/downloads/]this[/url] page, under the Drivers and Connectors heading.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.