![](/img/trans.png)
[英]PostgresSQL Installation fails: "database cluster initialisation failed" MAC os
[英]PostgresSQL 9.5 Installation fails: “database cluster initialisation failed” MAC os (big sur 11.4)
我正在 macOS 上安裝 PostgreSQL (V 9.5) 在它完成安裝之前我收到以下錯誤 macOS (big sur 11.4)
運行安裝后步驟時出現問題。 安裝可能無法正確完成 數據庫集群初始化失敗。
卸載 PostgresSQL,然后清理 /Library/PostgreSQL/ 目錄。 打開終端並運行:
sudo dscl . -create /Users/postgres UserShell /bin/sh
sudo dscl . -create /Users/postgres NFSHomeDirectory /Library/PostgreSQL
安裝 PostgresSQL
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.