MySQL 如何在 Windows 7 中安装 MyODBC?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2112824/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install MyODBC in Windows 7?
提问by Confused2
The downloaded installers from MySQL don't work - ie no mysql driver appears in the ODBC manager thing.
从 MySQL 下载的安装程序不起作用 - 即 ODBC 管理器中没有出现 mysql 驱动程序。
I've downloaded the mysql-connector-odbc-noinstall-5.1.6-win32 version, copied myodbc5.dll and myodbcS.dll to c:\windows\system32
我下载了mysql-connector-odbc-noinstall-5.1.6-win32版本,将myodbc5.dll和myodbcS.dll复制到c:\windows\system32
C:\dump\bin>myodbc-installer -d -a -n "MySQL ODBC 5.1 Driver" -t "DRIVER=
c:\windows\system32\myodbc5.dll;SETUP=c:\windows\system32\myodbc5S.dll"
Success: Usage count is 2
.. looks good but still no driver appears in the ODBC manager thing .
.. 看起来不错,但仍然没有驱动程序出现在 ODBC 管理器中。
Help greatly appreciated.
非常感谢帮助。
回答by Pekka
It's not clear whether you're on a 32 or 64 bit Windows, but If you are 64, it probably makes sense that the installation works out, but the driver doesn't turn up in the dialog.
不清楚您使用的是 32 位还是 64 位 Windows,但是如果您是 64 位,安装成功可能是有道理的,但驱动程序没有出现在对话框中。
Check out this article: Installing MyODBC 3.51 on Windows 7 x64
回答by Confused2
Thanks Pekka, you're right (someone else just told me) there's another ODBC manager - \SysWOW64\odbcad32.exe which does show the installed driver. The winX64 MSI installer download works.
谢谢 Pekka,您说得对(其他人刚刚告诉我)还有另一个 ODBC 管理器 - \SysWOW64\odbcad32.exe,它确实显示了已安装的驱动程序。winX64 MSI 安装程序下载有效。
Thanks to all for the site.
感谢所有的网站。
John.
约翰。
回答by j?rgensen
The nasty thing about this is that Control Panel will show an item entitled "ODBC (32-bit)", but this actually invokes the 64-bit ODBC administration in 64-bit Windows (irresponsively located at c:\windows\system32\odbccp32.cpl
).
令人讨厌的是,控制面板将显示一个名为“ODBC(32 位)”的项目,但这实际上会调用 64 位 Windows 中的 64 位 ODBC 管理(无响应地位于c:\windows\system32\odbccp32.cpl
)。
To get to the 32-bit ODBC administration, either use odbcad32.exe
as mentioned by other posters, or invoke control c:\windows\syswow64\odbccp32.cpl
.
要进行 32 位 ODBC 管理,请使用odbcad32.exe
其他海报中提到的方法,或调用control c:\windows\syswow64\odbccp32.cpl
.
回答by SP9AUV
mysql-connector-odbc-noinstall-5.1.6-win32.zip version can only be installed on a 32bit system, see MySQL documentation
mysql-connector-odbc-noinstall-5.1.6-win32.zip 版本只能安装在32位系统上,见MySQL文档
It states that:
它指出:
The following instructions only work for 32-bit Windows systems. If you have a 64-bit Windows system, use the MSI installer, which installs both the 32-bit and 64-bit drivers to the correct locations.
以下说明仅适用于 32 位 Windows 系统。如果您使用的是 64 位 Windows 系统,请使用 MSI 安装程序,它将 32 位和 64 位驱动程序安装到正确的位置。