kusal Posted July 27, 2006 Share Posted July 27, 2006 what is the driver used in "mysql_connect" function when connecting to the MySql database ??? Quote Link to comment https://forums.phpfreaks.com/topic/15792-what-is-the-driver/ Share on other sites More sharing options...
wildteen88 Posted July 27, 2006 Share Posted July 27, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15792-what-is-the-driver/#findComment-64575 Share on other sites More sharing options...
kusal Posted July 27, 2006 Author Share Posted July 27, 2006 so what about these things like ODBC myODBC JDBC??? what are these??? why don't we use them ??? Quote Link to comment https://forums.phpfreaks.com/topic/15792-what-is-the-driver/#findComment-64578 Share on other sites More sharing options...
wildteen88 Posted July 27, 2006 Share Posted July 27, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/15792-what-is-the-driver/#findComment-64580 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.