postgresql安装最后一步失败Problem running post-install step问题

时间:2024-05-19 19:59:36

报错显示:Problem running post-install step. Installation may not complete correctly. The database cluster initialisation failed.

安了**个小时,亲测有效!!!

方法一(有人有用,但我试了没有用):在安装的时候把默认的  改为chinese,最好是新加坡或者香港,澳门

postgresql安装最后一步失败Problem running post-install step问题

方法二(我最后成功的方法):

1.win+R——cmd——net user查看用户是否有postgre

我的没有,有的话删掉net user postgres /delete

 2.创建postgre用户,可能需要用到管理员权限

方法:win+R——cmd,这个时候不要敲回车按住CTRL+SHIFT+ENTER键可直接进入管理员模式命令行。

cmd命令:net user 用户名 密码 /add

3.创建安装文件夹及数据存放文件夹(不要使用默认目录,在C盘下面创建(我一开始在D盘,报错,后来看了别人的博客转到C盘))

4.修改文件夹权限,加入postgre用户

修改方式:

文件夹右键——属性——安全——编辑——添加

postgresql安装最后一步失败Problem running post-install step问题

 

对象类型——只选择用户——高级——立即查找

postgresql安装最后一步失败Problem running post-install step问题

 

postgresql安装最后一步失败Problem running post-install step问题

选择postgre,打开对应权限——完全控制

postgresql安装最后一步失败Problem running post-install step问题

确定就好了

两个文件夹都一改

5.管理员方式运行安装文件,目录选择刚建好的,默认选择Chinese/C都可以

安装完成!

其他参考:https://www.cnblogs.com/nehcdahc/p/12550388.html

https://blog.****.net/dubaoti7942/article/details/81163682

https://blog.****.net/antma/article/details/83579920

https://www.cnblogs.com/nehcdahc/p/12550388.html