修复postgres安装错误 Problem running post-install step. Installation may not complete correctly The datab

时间:2022-07-24
本文章向大家介绍修复postgres安装错误 Problem running post-install step. Installation may not complete correctly The datab,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

查了下资料大部分说是重建用户 或者管理员运行

正确做法用一条命令初始化数据 另一条注册后台服务就可以了

初始化数据库文件

D:Program FilesPostgreSQL13bininitdb -D D:DBdataPostgreSQL13data
D:Program FilesPostgreSQL13binpg_ctl" register -N postgresql-13 -D D:DBdataPostgreSQL13data

默认本地连接没有验证