PostgresSQL安装失败:“数据库集群初始化失败"苹果系统 [英] PostgresSQL Installation fails: "database cluster initialisation failed" MAC os

查看:211
本文介绍了PostgresSQL安装失败:“数据库集群初始化失败"苹果系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在macOS Catalina 10.15.1上安装PostgreSQL(V 9.6.16).在完成安装之前,我收到以下错误:

I am installing PostgreSQL (V 9.6.16) on macOS Catalina 10.15.1. Before it finishes installing I am getting the following error:

运行安装后步骤的问题.安装可能无法正确完成数据库集群初始化失败.

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

我该如何解决?

推荐答案

  1. 卸载PostgresSQL,然后清除/Library/PostgreSQL/目录.
  2. 打开终端并运行:

  1. Uninstall PostgresSQL and then clean /Library/PostgreSQL/ Directory.
  2. Open teminal and run :

sudo dscl. -创建/Users/postgres UserShell/bin/sh

sudo dscl . -create /Users/postgres UserShell /bin/sh

sudo dscl. -create/Users/postgres NFSHomeDirectory/Library/PostgreSQL

sudo dscl . -create /Users/postgres NFSHomeDirectory /Library/PostgreSQL

这篇关于PostgresSQL安装失败:“数据库集群初始化失败"苹果系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆