APPIREDDY
asked on
CONNECTING TO MYSQL FROM C#
Hi experts,
I want to connect to Mysql through c# using .net enviroinment,
I have downloaded mysql-connecter-net-6.0.3
should i need to download mysql -odbc driver.
can anybody tell how to access sata from mysql
many thanks
I want to connect to Mysql through c# using .net enviroinment,
I have downloaded mysql-connecter-net-6.0.3
should i need to download mysql -odbc driver.
can anybody tell how to access sata from mysql
many thanks
the following link shows how to connect to MySql using OleDb
http://www.aspfree.com/c/a/Database/Database-Programming-in-C-Sharp-with-MySQL-Using-OleDB/
http://www.aspfree.com/c/a/Database/Database-Programming-in-C-Sharp-with-MySQL-Using-OleDB/
and another link for mySql Connector 5.2
http://www.codeproject.com/KB/cs/CsharpAndMysql.aspx
http://www.codeproject.com/KB/cs/CsharpAndMysql.aspx
ASKER
I am trying to add the reference MySql.Data, I am able to go to the package mysql-connecter-net-6.0.3\ MySql.Data , but i couldn't add the package.
should i need to do anything?
many thanks
should i need to do anything?
many thanks
You should be able to add by adding it to the reference folder. If you have installed the connector it will appear in the .NET tab. Otherwise locate the dll using the Browse tab.
addref.jpg
browse.jpg
addref.jpg
browse.jpg
ASKER
I have downloaded the connecter from mysql website and installed it but i could not find the dll files
i will try downloading the connecter once again
i will try downloading the connecter once again
If you installed it, it will appear in the first tab of the add reference dialog (after all the Microsoft assemblies):
NET.jpg
NET.jpg
ASKER
I am using visualstudio express edition , even i couldn't find System.Data.OleDB
I'm also using express edition.
ASKER
yes i have installed the source one
ASKER
why even i couldn't locate System.Data.OleDB
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have againe installed mysql connecter
now i can referece MySql.Data
now i can referece MySql.Data
Open in new window