postgreSQL安装启动失败汇总

问题一:安装过程中出现此情况,可忽略

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

错误信息如下图:

postgreSQL安装启动失败汇总

问题二:pgAdmin 4连接出错

postgreSQL安装启动失败汇总

PostgreSQL连接出错,在命令提示符中无法打开,进入 服务 中启动PostgreSQL服务,还是报错,显示:无法连接到服务器,connection refused,

解决办法:

  1. windows+R,输入services.msc查看postgreSQL服务,启动postgresql服务
  2. 启动失败

postgreSQL安装启动失败汇总

postgreSQL安装启动失败汇总

     3. 修改 安装时的data目录下的postgresql.conf 恢复到初始值。删除文件中的空NULL值

postgreSQL安装启动失败汇总

     4.  重新启动服务,使用pgAdmin 4连接即可。