简体   繁体   English

如何在编译VB.NET应用程序时包括MySQL数据库

[英]How to include MySQL Database in compiling VB.NET application

I'm using MySQL database on my project and never had experience compiling vb.net application that includes database. 我在我的项目上使用MySQL数据库,但从未有过编译包含数据库的vb.net应用程序的经验。 So i want to know how to include or embed the MySQL database in making executable file of your application. 所以我想知道如何在制作应用程序的可执行文件时包括或嵌入MySQL数据库。 Thanks! 谢谢!

Just add it to the solution and load it: 'By RightClicking on solution and click add/existing item' 只需将其添加到解决方案并加载即可: 'By RightClicking on solution and click add/existing item'

Dim con As New SqlClient.SqlConnection("data source=" & Application.StartupPath & "\database.mdf")

If i hadn't solved your problem give me more information. 如果我没有解决您的问题,请给我更多信息。

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

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