安装PostgreSQL时快要完成的时候抛出异常

Problem running post-install step. Installation may not complete correctlty.
The database cluster initialisation failed.

2.解决方法

我是直接将原有的服务名称删除

sc delete postgresql-x64-10

添加新的服务名称

注册一个名为postgresql01的服务

D:\PostgreSQL\bin>pg_ctl.exe register -N postgresql01 -D D:\pgdata

启动这个服务

如果这个不行的话

可以重新初始化数据库

initdb.exe -D D:\pgdata01 -U postgres -W

我没有实验 因为第一步我的就可以了

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐