加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

在PostgreSQL安装期间无法将sql模块加载到数据库集群中

发布时间:2020-12-13 16:26:31 所属栏目:百科 来源:网络整理
导读:我已经尝试多次安装PostgreSQL 9.4和8.4,无论我尝试了什么都失败了.我试图在 Windows 7 SP1 x64上安装.在每次安装失败之后,我已经卸载并删除了安装文件夹以开始新鲜. 每次尝试安装时,我会在安装结束时弹出一个错误消息: “无法将sql模块加载到数据库集群”.
我已经尝试多次安装PostgreSQL 9.4和8.4,无论我尝试了什么都失败了.我试图在 Windows 7 SP1 x64上安装.在每次安装失败之后,我已经卸载并删除了安装文件夹以开始新鲜.

每次尝试安装时,我会在安装结束时弹出一个错误消息:
“无法将sql模块加载到数据库集群”.

之后会出现另一个错误弹出显示:
“运行安装后步骤错误安装可能无法正确完成.读取C:/ Program Files / PostgreSQL / 9.4 / postgresql.conf时出错

我尝试安装以下操作:

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

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

尝试在Windows 10 Pro上安装PostgreSQL v9.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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读