Windows 7 上的 PostgreSQL ODBC 驱动程序未显示
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6061928/
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
PostgreSQL ODBC Drivers on Windows 7 not showing up
提问by capdragon
I'm running win7 64bit so I installed the (psqlodbc_09_00_0300-x64.zip) msi 64bit drivers for postgres odbc.
我正在运行 win7 64bit 所以我为 postgres odbc安装了 (psqlodbc_09_00_0300-x64.zip) msi 64bit 驱动程序。
i also tried launching the odbc manager from the following location "%systemdrive%\Windows\SysWoW64\odbcad32.exe"
我还尝试从以下位置启动 odbc 管理器“%systemdrive%\Windows\SysWoW64\odbcad32.exe”
But i still don't see any postgres drivers i can use.
但是我仍然看不到任何可以使用的 postgres 驱动程序。
Anyone know how to make them show up?
有谁知道怎么让他们出现?
回答by Konstantin
To setup DSN for 32-bit application you must use: %WINDIR%\SysWOW64\odbcad32.exe and for 64-bit application you must use: %WINDIR%\System32\odbcad32.exe
要为 32 位应用程序设置 DSN,您必须使用:%WINDIR%\SysWOW64\odbcad32.exe,对于 64 位应用程序,您必须使用:%WINDIR%\System32\odbcad32.exe
回答by Chris Travers
Typically in a case like this you want to install both the 64-bit drivers (for 64-bit programs) and the 32-bit drivers (for 32-bit programs). If this doesn't work you have two options:
通常在这种情况下,您希望同时安装 64 位驱动程序(用于 64 位程序)和 32 位驱动程序(用于 32 位程序)。如果这不起作用,您有两个选择:
Uninstall and reinstall. On reinstall disable antivirus software, etc. and anything else that may interfere with writing to the registry.
Run regsvr32 on on the 32-bit version and regsvr64 on the 64-bit version
卸载并重新安装。在重新安装时禁用防病毒软件等以及任何可能干扰写入注册表的内容。
在 32 位版本上运行 regsvr32,在 64 位版本上运行 regsvr64