[英]connecting remote mysql database using c#.net
I am developing c# windows application. 我正在开发C#Windows应用程序。
In that I want to connect to mysql database which resides in another system. 在那我想连接到驻留在另一个系统中的mysql数据库。
Please help me to solve this? 请帮我解决这个问题?
Assuming that you know how to connect to and query a database, you'll need the following: 假设您知道如何连接和查询数据库,则需要执行以下操作:
Add a reference to the MySQL provider. 添加对MySQL提供程序的引用。 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. 从那里开始,它的工作方式就像连接到SQL Server盒一样,只是类名有所不同,并且一些次要的SQL方言也有所不同。
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 . 我建议您自己为Google提供基本的数据访问教程 。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.