Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
i want to use mysql with asp.net
Posted
Updated 15-Jan-12 23:30pm
v3

 
Share this answer
 
Comments
Uday P.Singh 22-Dec-11 11:56am    
5ed :)
Wendelius 22-Dec-11 12:06pm    
Thanks Uday :)
Wendelius 22-Dec-11 12:05pm    
You have to define the DSN using control panel / ODBC admin and use that DSN name. Note that if you're using 64 bit windows the DSN may have to be defined in 32 bit sources, see: http://support.microsoft.com/kb/942976[^]
Uday P.Singh 22-Dec-11 12:15pm    
why not use the Connector/Net instead of ODBC. And refer this for implementation.
Wendelius 22-Dec-11 14:45pm    
That's also a possibility
Try this:

An ASP.NET Application Using a MySQL Database[^]

hope it helps :)
 
Share this answer
 
Comments
Wendelius 22-Dec-11 12:06pm    
Good link, 5'd
Uday P.Singh 22-Dec-11 12:24pm    
thank you Mika :)
naren programmers 22-Dec-11 12:16pm    
i tried both i did not understand what to do becuse i did not get how to make it run i studied these before and uploaded this page on server
please see the page u will see connection string too
http://programmersvalley.com/default3.aspx
but error is
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
if you see this url u can see the connection string also please see and revert back

please help
Uday P.Singh 22-Dec-11 12:24pm    
refer my reply to your comment in Mika's answer.
Uday P.Singh 22-Dec-11 12:53pm    
What is confusing? did you visit the link in my reply, it has the complete step by step explanation of using Connector/Net in your application. If you can't understand that, then I am afraid about your future as a good developer.

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