Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 安装PostgreSQL时出错?_Windows_Postgresql_Installation - Fatal编程技术网

Windows 安装PostgreSQL时出错?

Windows 安装PostgreSQL时出错?,windows,postgresql,installation,Windows,Postgresql,Installation,在安装PostgreSQL期间,我收到一条错误消息:“未能将sql模块加载到数据库群集”,但没有错误消息“运行安装后步骤时出错。安装可能未正确完成。读取C:/Program Files/PostgreSQL/9.5/PostgreSQL.conf时出错” 我已尝试执行以下步骤,但仍出现上述错误: 卸载PostgreSQL并删除安装文件夹中的数据目录。 创建名为postgres的新Windows用户并将其添加到管理员组。 重新启动计算机。 使用以下命令打开cmd(命令提示符)作为postgres命

在安装PostgreSQL期间,我收到一条错误消息:“未能将sql模块加载到数据库群集”,但没有错误消息“运行安装后步骤时出错。安装可能未正确完成。读取C:/Program Files/PostgreSQL/9.5/PostgreSQL.conf时出错”

我已尝试执行以下步骤,但仍出现上述错误:

卸载PostgreSQL并删除安装文件夹中的数据目录。 创建名为postgres的新Windows用户并将其添加到管理员组。 重新启动计算机。 使用以下命令打开cmd(命令提示符)作为postgres命令:runas/user:postgres cmd.exe 出现一个新窗口,您需要从此窗口运行安装程序文件


帮帮我,谢谢

我将尝试使用
管理员
帐户登录(
运行方式
并不总是足够好),并尝试从该帐户执行安装。注意:指出您使用的是哪个版本的Windows,以及您尝试安装的几个PostgreSQL发行版中的哪个(是否有其他版本?)总是有帮助的。我从EnterpriseDB下载了文件.exe,我已尝试通过运行Administrator下载,但仍然有错误。如果二进制文件安装正确,可以使用initdb在其他文件夹中创建数据库服务器。