Connecting to MySQL database in C# is quite easy. Just make sure you have the MySQL.Data
connector installed and have a reference to it in your C# project, then the following code
should get you connected.
You need to replace the things in angle brackets below with values appropriate for your
ConnectionString = "Database=<Database name>;Data Source=<URL or IP
Address>;User Id=<User name>;Password=<password>";
MySQLConnection = New MySql.Data.MySqlClient.MySqlConnection(ConnectionString);
Carl Zeiss Vision
From: Ashish Rathore [mailto:Ash.rathore247@stripped]
Sent: Thursday, 9 June 2011 7:40 PM
Subject: Re: Mysql connection Error
Hello mubarak shaikh!
I also have the same problem.I tryed alot to solve this problem but i am unable to solve
it.If you Solved this problem then please help me.
I want to connect my web c# asp.net application to linex server mysql database.