i am developing c# windows application.In that i want to connect to mysql database which resides in another system.please help me to solve this? thank you in advance
+1
A:
Assuming that you know how to connect to and query a database, you'll need the following:
- The ADO.NET provider for MySQL
- The hostname or IP address of the server
- A user ID and password to connect with
Add a reference to the MySQL provider. From there, it works just like connecting to a SQL Server box, except the class names are a bit different and some minor SQL dialect is also different.
Of course, if you don't already know how to connect to a database, you'll need to start a bit slower. I'd recommend you Google yourself a basic data-access tutorial.
Good luck!
mtutty
2009-02-23 05:02:41