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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-20 23:01:46  来源:igfitidea点击:

PostgreSQL ODBC Drivers on Windows 7 not showing up

postgresqlodbc

提问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?

有谁知道怎么让他们出现?

enter image description here

在此处输入图片说明

回答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

see http://psqlodbc.projects.pgfoundry.org/faq.html#6.8

http://psqlodbc.projects.pgfoundry.org/faq.html#6.8

回答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 位程序)。如果这不起作用,您有两个选择:

  1. Uninstall and reinstall. On reinstall disable antivirus software, etc. and anything else that may interfere with writing to the registry.

  2. Run regsvr32 on on the 32-bit version and regsvr64 on the 64-bit version

  1. 卸载并重新安装。在重新安装时禁用防病毒软件等以及任何可能干扰写入注册表的内容。

  2. 在 32 位版本上运行 regsvr32,在 64 位版本上运行 regsvr64