简体   繁体   English

我如何在未安装mysql连接器的情况下运行mysql应用程序?

[英]How do i run a mysql app without mysql connector installed?

I made an C# application on visual studio, and this application connects to a MySQL Server, it works nice on my computer since I installed the full developer version of it. 我在Visual Studio上制作了一个C#应用程序,该应用程序连接到MySQL服务器,由于我安装了完整的开发人员版本,因此在我的计算机上运行良好。

But it doesn't run on other machines unless I install MySql connector, if I don't, it will stop working and not launch. 但是除非安装MySql连接器,否则它不能在其他计算机上运行,​​否则,它将停止工作并且无法启动。

Is there anyway to run it without having mysql connector installed? 无论如何,没有安装mysql连接器就可以运行它? Or add mysql connector installation to my app? 还是将mysql连接器安装添加到我的应用程序?

You need to bundle the MySql Connector/Net with your program. 您需要将MySql Connector / Net与程序捆绑在一起。 Connector/Net is available as an msi file that a Visual Studio Installer project in the same solution as your program's project can include alongside your program's installer as a dependency. Connector / Net作为msi文件提供,与程序项目相同的解决方案中的Visual Studio Installer项目可以作为依赖项包含在程序的安装程序中。

The Connector is licensed under the GPL, so make sure you understand your obligations if you choose to distribute it in this manner. 连接器是根据GPL许可的,因此,如果选择以这种方式分发它,请确保您了解自己的义务。

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

相关问题 如何运行安装了 mysql 连接器的 mysql 应用程序? - How do i run a mysql app with mysql connector installed? 尽管拥有正确的NuGet软件包,为什么我仍需要在计算机上安装MySQL连接器? - Why do I still need the MySQL Connector installed on the computer despite having the proper NuGet packages? 如何将 MySql 连接器导入 Unity 项目? - How do I import MySql Connector into Unity Project? 如何以编程方式获取MySQL Connector / NET驱动程序版本? - How do I get the MySQL Connector/NET driver version programmatically? 如何为包含数据库连接器的程序集设置绝对路径? 带有实体框架4.1的MySQL Connector 6.4.3 - How do I set the absolute path for a assembly containing Database connector? MySQL Connector 6.4.3 with Entity Framework 4.1 如何在Ubuntu [C#]中安装的mysql中存储映像? - How do I store images in mysql installed in Ubuntu [C#] ? 如何通过C#使用mysql连接器连接到mysql而无需实际安装连接器 - How to connect to mysql using mysql connector via C# without actually installing the connector 如何将MySQL连接器添加到UWP C#应用程序? - How to add the MySQL Connector to a UWP C# app? 使用与安装的连接器不同的MySql.Data版本 - Use a version of MySql.Data different than installed connector 如何在Mysql Connector / NET中省略对SqlNullValueException的检查 - How to omit checking for SqlNullValueException in Mysql Connector/NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM