简体   繁体   English

将VB.NET连接到MySQL数据库

[英]Connecting VB.NET to a MySQL Database

I have a VB.NET application and I need it to be able to display rows from a MySQL database. 我有一个VB.NET应用程序,我需要它能够显示MySQL数据库中的行。 How would I do this? 我该怎么做?

Update: Another thing that I could do is have the app get a PHP page from the site that shows the DB, and gets the page every 10 seconds or so. 更新:我可以做的另一件事是让该应用程序从显示数据库的站点获取一个PHP页面,并每隔10秒左右获取一次页面。

http://dev.mysql.com/tech-resources/articles/dotnet/ http://dev.mysql.com/tech-resources/articles/dotnet/

That presents you with a couple of options, with connection code samples. 这为您提供了两个选项以及连接代码示例。

You can use the MySQL Connector which you can get from here . 您可以使用从此处获得的MySQL连接器。 The bottom part of this article describes how to install the connector and connect to the MySQL database. 的底部文章介绍如何安装连接器并连接到MySQL数据库。 This link shows some examples of connection strings. 链接显示了一些连接字符串的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM