connect to mySQL

  • Thread starter Thread starter Jassim Rahma
  • Start date Start date
J

Jassim Rahma

Hi,

How can I directlly connect to mySQL server from C# without an ODBC
drive? connecting through ODBC means I have to include mySQL
Connecter/ODBC in my distribution media.. I want to only distibute my
application..


Many Thanks,
Jassim Rahma
 
Jassim,

You can use a .net provider (e.g. System.Data.SqlClient - except for mySql).
There are a few .net providers that you can use for MySql. I have posted
the links to a couple of them below. Also you can use OleDb to access the
MySql Database too.

I hope this helps.
 
you need a native MySQL driver dll and use interop to call its functions.
for example libmysql4.dll
 
Back
Top