我正在尝试在 Windows 7 系统上安装 MySQL 连接器,但它没有显示在 ODBC 添加窗口中

发布于 2024-09-06 03:42:31 字数 167 浏览 2 评论 0原文

这是在 Windows 7 64 位下。我下载了 64 位驱动程序,事实上我尝试了所有 Windows 驱动程序(不过首先卸载了以前的驱动程序)。但是当我尝试配置新的 ODBC 连接时,MySQL 驱动程序没有显示。

我需要安装其他软件包才能使连接器正常工作吗?像 MDAC 或 .NET 还是其他什么?

This is under Windows 7 64 bit. I downloaded the 64 bit drivers and as a matter of fact I tried all the windows drivers(uninstalling the previous ones first though). But when I try to configure a new ODBC connection the MySQL driver doesn't show up.

Do I need to install some other package before I can get the connector to work? Like MDAC or .NET or something else?

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

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

发布评论

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

评论(5

a√萤火虫的光℡ 2024-09-13 03:42:44

“在 SysWow64 中发现了 32 位管理员,在 System32 中发现了 64 位管理员。 – TallTed,2014 年 5 月 5 日 16:19”

因此,我按照 Ted 的简单声明结束了地狱般的一周。我打开这个隐藏得很好的32位exe,哇啦!直到那时我才看到的所有司机都准备好了并愿意去上班。他们甚至在几次假卸载中幸存下来!

我使用的是在 Parallels 10 上运行 Windows 7 Ultimate 的 iMac。MS Access 应用程序是在仅 Win7 的计算机上构建的,我能够通过随机猴子工具集链接到 MySQL。我在这台机器上就没那么幸运了。如果 Ted 的事实能够在这台 IMac 上运行,那么它就可以在任何地方运行。

顺便说一句:事实证明我确实有 32 位和 64 位驱动程序、Unicode 等等——所有这三个。我不准备解决这个问题。 :0

"The 32-bit Administrator IS found in SysWow64, and the 64-bit Administrator IS found in System32. – TallTed May 5 '14 at 16:19"

So I ended hell week by following Ted's simple statement. I opened this well-concealed 32 bit exe and Wah La! All the drivers I couldn't see till then were ready and willing to go to work. They had even survived several faux de-installs!

I'm on an iMac running Windows 7 Ultimate on Parallels 10. The MS Access app was built on a Win7 only machine which I was able to link to MySQL by virtue of the random monkey toolset. I was not so lucky on this machine. If Ted's factoid will work on this IMac, it will work anywhere.

btw: It turns out I do have both 32 and 64 bit drivers, Unicode, etc--all three. I am not prepared to sort that one out. :0

腹黑女流氓 2024-09-13 03:42:44

Access 2013 不会显示它,直到我安装了 32 位和 64 位驱动程序,然后退出并重新启动 Access。

Access 2013 wouldn't show it until I installed both the 32 bit and 64 bit drivers and then exited and restarted Access.

在梵高的星空下 2024-09-13 03:42:43

如果你想在 WIN 7 中运行 32 位:
下载 32 位版本 ZIP (fe mysql-connector-odbc-noinstall-5.1.13-win32)
运行安装.bat
打开c:\Windows\SysWow64\odbcad32.exe
在 User DSN Add 中,您可以选择 32 位版本驱动程序

If you want to run 32 bit in WIN 7:
Download 32 bit version ZIP (f.e. mysql-connector-odbc-noinstall-5.1.13-win32)
Run Install.bat
Open c:\Windows\SysWow64\odbcad32.exe
In User DSN Add and you can choose from 32 bit version drivers

神魇的王 2024-09-13 03:42:41

尝试从“C:\Windows\SysWOW64”而不是“C:\Windows\System32”运行 ODBC。

Try running the ODBC from "C:\Windows\SysWOW64" instead of from "C:\Windows\System32".

若有似无的小暗淡 2024-09-13 03:42:40

关键问题是您的 ODBC 客户端可执行文件(将加载驱动程序库并使用数据的东西)是 32 位还是 64 位。 64 位 Windows(XP、Vista、7、8、Server 2003、Server 2008 以及迄今为止的所有其他变体)支持 32 位和 64 位二进制可执行文件/库。 32 位可执行文件(通常在 Program Files (x86) 中找到)只能使用 32 位驱动程序; 64 位可执行文件(通常在 Program Files 中找到)只能使用 64 位驱动程序。

一旦您弄清楚了该部分,您就必须为 MySQL 安装匹配的 32 位或 64 位驱动程序,并使用正确的 ODBC 管理器对其进行配置。 32 位 ODBC 管理器违反直觉地位于 C:\Windows\SysWow64\odbcad32.exe,64 位 ODBC 管理器同样违反直觉地位于 C:\Windows\System32\ odbcad32.exe。 (是的,两者都被命名为 odbcad32 并且目录名称暗示了其他位数 - 但我刚才所说的是准确的。)

有关这方面的更多信息,您可以阅读 文章发布在我的雇主上 的网站

请注意,为了增加乐趣,Microsoft 的 ODBC 驱动程序管理器 (MDAC) 有一个错误,即 它显示 32 位用户 DSN 到 64 位客户端可执行文件(包括管理员),并且它显示 64 位用户 DSN 到 32 位客户端可执行文件(再次包括管理员) - 即使这些不匹配不能一起工作。因此,我强烈建议在可能混合使用 32 位和 64 位可执行文件/驱动程序/DSN 的任何环境中使用系统 DSN。

The key question is whether your ODBC client executable -- the thing that's going to load the driver library and use the data -- is 32-bit or 64-bit. 64-bit Windows (XP, Vista, 7, 8, Server 2003, Server 2008, and all other variants to date) supports both 32-bit and 64-bit binary executables/libraries. 32-bit executables (usually found in Program Files (x86)) can only use 32-bit drivers; 64-bit executables (usually found in Program Files) can only use 64-bit drivers.

Once you've figured that part out, you have to install a matching 32-bit or 64-bit driver for MySQL, and configure it with the right ODBC Administrator. The 32-bit ODBC Administrator is counterintuitively found at C:\Windows\SysWow64\odbcad32.exe, and the 64-bit ODBC Administrator is likewise counterintuitively found at C:\Windows\System32\odbcad32.exe. (Yes, both are named odbcad32 and the directory names suggest the other bitness -- but what I've just said is accurate.)

For more on this, you can read the article posted on my employer's website

Note that for added fun, Microsoft's ODBC driver manager (the MDAC) has a bug in that it shows 32-bit User DSNs to 64-bit client executables (including the Administrator), and it shows 64-bit User DSNs to 32-bit client executables (again, including the Administrator) -- even though these mis-matches cannot work together. For this reason, I strongly recommend using only System DSNs in any environment that may have a mix of 32-bit and 64-bit executables/drivers/DSNs.

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