控制面板(数据源)中未显示 PostgreSQL ODBC 驱动程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1057575/
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-09-10 22:16:42  来源:igfitidea点击:

PostgreSQL ODBC driver not showing up in Control Panel (Data Sources)

postgresql64-bitodbccontrolpanel

提问by Assaf Lavie

I installed psqlODBCand when I go to Control Panel -> Data Sources (ODBC) I don't see the Postgres driver installed.

我安装了psqlODBC,当我进入控制面板 -> 数据源 (ODBC) 时,我没有看到安装了 Postgres 驱动程序。

I rebooted, still nothing.

我重启了,还是不行。

I then noticed that if I launch this control panel applet from the file c:\WINDOWS\system32\odbccp32.cplthe drivers suddenly appear!

然后我注意到,如果我从文件中启动这个控制面板小程序,c:\WINDOWS\system32\odbccp32.cpl驱动程序会突然出现!

This happens on an XP 64 bit machine.

这发生在 XP 64 位机器上。

I can't really explain why this is, or what the implications of this are.

我无法真正解释为什么会这样,或者这意味着什么。

When launching from the Control Panel, rundll32's command line is:

从控制面板启动时,rundll32 的命令行是:

"rundll32.exe" shell32.dll,Control_RunDLL "c:\WINDOWS\system32\odbccp32.cpl",

(this data is from Process Explorer)

(此数据来自 Process Explorer)

When launching from odbccp32.cplthe command line is:

odbccp32.cpl从命令行启动时是:

"C:\WINDOWS\system32\rundll32.exe" C:\WINDOWS\system32\shell32.dll,Control_RunDLL "C:\WINDOWS\system32\ODBCCP32.CPL",@0

Any ideas?

有任何想法吗?

回答by ErikE

Did you perhaps install a 32 bit driver? The applet starts the 64-bit version of the odbc admin tool, odbcad32.exe. Try running the 32-bit version in %systemdrive%\Windows\SysWoW64\odbcad32.exe.

您是否安装了 32 位驱动程序?小程序启动 odbc 管理工具 odbcad32.exe 的 64 位版本。尝试在 %systemdrive%\Windows\SysWoW64\odbcad32.exe 中运行 32 位版本。

Registry redirection makes this a bit of a headache, see http://support.microsoft.com/kb/942976for more information.

注册表重定向让这有点头疼,请参阅http://support.microsoft.com/kb/942976了解更多信息。