我正在 macOS 上安装 PostgreSQL (V 9.5) 在完成安装之前我收到以下错误 macOS (big sur 11.4)
<块引用>运行安装后步骤时出现问题。安装可能没有正确完成数据库集群初始化失败。
答案 0 :(得分:0)
卸载 PostgresSQL,然后清理 /Library/PostgreSQL/ 目录。 打开终端并运行:
sudo dscl . -create /Users/postgres UserShell /bin/sh
sudo dscl . -create /Users/postgres NFSHomeDirectory /Library/PostgreSQL
安装 PostgresSQL
请参考PostgresSQL Installation fails: "database cluster initialisation failed" MAC os