从 VBA 连接到 MySQL 数据库,无需安装 MySQL

发布于 2024-09-06 14:20:49 字数 478 浏览 1 评论 0原文

我可以使用以下连接字符串从我的计算机上的 Excel 工作簿连接到远程 MySQL 数据库,没有问题:

驱动程序={MySQL ODBC 5.1 驱动程序};服务器=服务器;数据库=数据库;user=用户;密码=;选项= 3;

..但是当其他人尝试使用同一工作簿时,无法建立连接(“未找到数据源名称且未指定默认驱动程序”)。

我安装了 XAMPP,所以 MySQL 正在运行,这可能解释了为什么我有必要的 myodbc5.dll (根据 )以启用连接。

机器上没有安装 MySQL 的其他人如何连接到 MySQL 数据库?

I can connect to a remote MySQL db from an Excel workbook on my machine no problem using the following connection string:

Driver={MySQL ODBC 5.1 Driver};Server=server;Database=database;user=user;Password=;Option=3;

..but when others try to use the same workbook the connection can't be made ("Data source name not found and no default driver specified").

I have XAMPP installed so have MySQL running and this probably explains why I have the necessary myodbc5.dll (as per this) to enable the connection.

How can others without MySQL installed on their machines connect to a MySQL db?

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

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

发布评论

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

评论(1

再可℃爱ぅ一点好了 2024-09-13 14:20:49

他们可能只需要 数据库驱动程序。

快速搜索“odbc” drivers generic windows”返回了 3rd party generic drivers,所以有可能是 Windows 附带的缺陷。

They probably just need the database driver.

A quick search for "odbc drivers generic windows" came back with 3rd party generic drivers, so there are likely deficiencies with the ones that ship with Windows.

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