RE: Mysql connection Error
"Bonnett, John" <[email protected]> Fri, 10 Jun 2011 08:14:44 +0800
| Newsgroups | gmane.comp.db.mysql.odbc |
|---|---|
| Message-ID | <0F231A06CA35674FAB1E114AEE8D5E6450F9267BC7@SGSI6SEXH01.vision.zeiss.org> |
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 installation. MySql.Data.MySqlClient.MySqlConnection MySQLConnection; String ConnectionString; ConnectionString = "Database=<Database name>;Data Source=<URL or IP Address>;User Id=<User name>;Password=<password>"; MySQLConnection = New MySql.Data.MySqlClient.MySqlConnection(ConnectionString); MySQLConnection.Open(); ______________ Carl Zeiss Vision Software Engineer Asia Pacific John Bonnett -----Original Message----- From: Ashish Rathore [mailto:[email protected]] Sent: Thursday, 9 June 2011 7:40 PM To: [email protected] 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. -- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/[email protected]