gpt4 book ai didi

postgresql - Mountain Lion Postgres 无法连接

转载 作者:行者123 更新时间:2023-11-29 11:14:42 25 4
gpt4 key购买 nike

更新到 mountain lion 后,我的 postgres 就可以工作了。它仍在运行,但我的应用程序无法再连接到它。

$ ps aux | grep postgres
postgres 204 0.0 0.0 2446960 836 ?? Ss 7:31AM 0:00.59 postgres: stats collector process
postgres 203 0.0 0.1 2478732 2240 ?? Ss 7:31AM 0:00.41 postgres: autovacuum launcher process
postgres 202 0.0 0.0 2478600 584 ?? Ss 7:31AM 0:00.34 postgres: wal writer process
postgres 201 0.0 0.0 2478600 784 ?? Ss 7:31AM 0:00.48 postgres: writer process
postgres 95 0.0 0.0 2446960 368 ?? Ss 7:31AM 0:00.11 postgres: logger process
postgres 64 0.0 0.2 2478600 7972 ?? Ss 7:31AM 0:00.26 /Library/PostgreSQL/9.1/bin/postmaster -D/Library/PostgreSQL/9.1/data
anezio 10205 0.0 0.0 2432768 624 s000 R+ 8:01AM 0:00.00 grep postgres

我的应用程序返回此错误:

could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

我仍然可以使用命令/Library/PostgreSQL/9.1/bin/psql -U postgres 连接到 psql

好像有什么东西没有指向正确的地方

最佳答案

我刚刚遇到了同样的问题。我个人刚刚从 Postgres 安装程序(在我的例子中是 postgresql-9.1.3-1-osx.dmg)重新安装,重新启动我的 mac,一切都很好。附:重新安装并没有破坏我的数据库:)

关于postgresql - Mountain Lion Postgres 无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11686526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com