PDA

View Full Version : C# connection to MySQL anyone?


afranka
01-24-2004, 12:14 AM
Hi,

I'm running out of hope that there is a way of accessing a MySQL database for a webpage using C#.

Can anyone give me any kind of code that will display anything from the database on a webpage?

I've spent hours searching the web and have not found anything that I can get to work!!!

If it helps I'm using MySQL 4.0.13, I have installed MyODBC, using .NET 1.1, tried using system DSN, don't care how it is setup, ODBC, OLEdb blah blah... About to give up!!!

Please save me!!??

fractalvibes
01-24-2004, 04:31 AM
See http://www.connectionstrings.com/ for all kinds of connectionstrings! Should not be that different from using VB to connect. I think for MySql I did have to use some option=64 or some such - you will see at that site.

Hope that helps.

fv

Bullschmidt
02-05-2004, 09:21 AM
And here's another good connection strings resource:

http://www.able-consulting.com/ADO_Conn.htm