带有 Data.odbc 的 C# 应用程序无法在不同的计算机上运行..要包含什么?

发布于 2024-08-10 19:31:52 字数 236 浏览 2 评论 0原文

我有一个使用命名空间 data.odbc 的应用程序,以便与 MySQL 一起使用。我在不同的电脑上尝试过,该应用程序可以工作,但是当 odbc 对象应该工作时,它什么也不做。我想缺少一些东西 - 我认为它会自动包含在内。 我查看了应用程序文件 - 所有文件都包含在内。我尝试过添加引用,但没有 system.data.odbc :( 编辑:在代码中,我没有使用任何对 MySQL Connector 之类的东西的引用,它可以在我的机器上运行。 感谢您的帮助

I have an app with the use of namespace data.odbc in order to work with MySQL. I have tried it on different PC, the app works but when the odbc object should work, it does nothing. I suppose something is missing - I thought its automatically included.
I have looked into app files - all are included. I have tried Add reference but there is no system.data.odbc :(
EDIT: In the code I am not using any references to stuff like MySQL Connector and it works on my machine.
Thank you for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绾颜 2024-08-17 19:31:52

也许在 PC 上安装连接器

MySQL

编辑:
“什么都不做”就是没有结果?没有错误怎么办?
在目标计算机上安装 MySQL 驱动程序 LINK

Maybe install the connector on the PC

MySQL

EDIT:
'Does nothing' as in no results? No error what so ever?
Install MySQL drivers on target machine LINK

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文