我多次try 安装PostgreSQL 9.4和8.4,但无论我try 了什么,都失败了.我正在try 在Windows 7 SP1 x64上安装.每次安装失败后,我都会卸载并删除安装文件夹,重新开始安装.

每次try 安装时,我都会在安装结束时弹出一个错误,上面写着:

然后,另一个错误弹出窗口随即显示:

我已try 通过以下操作进行安装:

  • 始终以管理员身份安装
  • 关闭所有病毒保护和windows防火墙
  • 将安装目录更改为程序文件目录以外的其他目录.
  • 将数据目录更改为postgres的安装目录以外的其他目录

上面的所有操作都没有帮助,我总是收到错误.如果有人能提供任何帮助,我们将不胜感激!

推荐答案

我在try 安装PostgreSQL v9时遇到了同样的错误.Windows 10 Pro上的4.4.从a solution hosted on Stack Exchange开始,我想出了以下步骤,使安装程序能够成功运行:

1) Create a new user account, called postgres
2) Add the new account to the Administrators and Power Users groups
3) Restart the computer
    NOTE: I added step #3, since step #4 didn't work without it
4) Run a command prompt as the postgres user, using the command:
    runas /user:postgres cmd.exe
5) Run the installer from the postgres command window
6) Delete the postgres user account, as well as the user directory
    NOTE: I added step #6, since the postgres account is not required after installation

Postgresql相关问答推荐

PostGresql :正则表达式 Select 其中只有一个正斜杠的行

Postgres 生成的列不是不可变的

Power BI + Postgres:只读用户

Docker compose read connection reset by peer error on pipeline

从 sql 查询 postgres 9.4 创建嵌套 json

错误:CASE types character varying and numeric cannot be matched

在 Windows 10 中执行时,Docker 容器关闭并给出data directory has wrong ownership错误

仅在存在时重命名列

获取 psycopg2 count(*) 结果数

如何使用 Node.js 和 Postgresql 找到最后一个插入 ID?

错误:ERROR: table name specified more than once

PGError:错误: column of relation does not exist

Postgresql varchar 是否使用 unicode 字符长度或 ASCII 字符长度计算?

PG::ConnectionBad FATAL:role "Myname" does not exist

Postgres 中有多少表分区太多了?

在同一台机器上创建多个 Postgres 实例

在 PostgreSQL 中 Select 进入临时表?

如何将 CSV 数据插入 PostgreSQL 数据库(远程数据库)

由于不支持身份验证类型 10,无法连接到 Postgres DB

如何在 PostgreSQL 中获取数组的最后一个元素?