我一直在尝试在我的机器(Windows 7 64bit)上安装 PostgreSQL 9.2 for Windows 的 64 位版本并收到此错误:
The environment variable COMPSPEC does not seem to point to the cmd.exe or there is a trailing semi colon present.
我已经以管理员身份安装了它。
我禁用了防病毒软件(Microsoft Security Essentials)和防火墙。
跑步:
"%COMSPEC%" /C "echo test ok"
回来test ok
我检查了我的系统环境变量是否有尾随分号,但我找不到任何东西。
然后我安装了 32 位版本,并设法以不同的错误消息结束安装:Problem running post-install step. Installation may not complete correctly Error reading the C:\Program Files (x86)\PostgreSQL\9.2\data\postgresql.conf
但该目录中没有postgresql.conf
文件。它确实安装了应用程序,当我尝试用红色 X 连接服务器时,它在底部显示失败,并且在我输入密码后它不会连接。
如何连接到此服务器连接?