Click here to Skip to main content
15,886,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I connect to a MYSQL database in C#?
Posted
Updated 9-Jun-11 23:28pm
v2

Using similar method to this
Beginners guide to accessing SQL Server through C#[^]

The connection string you need to use is here.
http://www.connectionstrings.com/mysql[^]

Good luck
 
Share this answer
 
Use MySql Connector/Net[^] and work you way :-)

See this guide from MySql - http://dev.mysql.com/doc/refman/5.1/en/connector-net-programming.html[^]
 
Share this answer
 
You need to get a copy of the .Net connector for MySQL here[^]. This connector is a standard ADO.Net component and so if you have used Sql Server then you should be fine.

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900