我更新到山獅後,我的postgres做的工作。它仍在運行,但我的應用程序無法再連接到它。山獅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"?
我仍然可以連接使用命令給psql /Library/PostgreSQL/9.1/bin/psql -U Postgres的
好像有些東西並沒有指向正確的位置
聽起來像你在該機器上有一些其他的postgres build,你使用的是psql。也許你可以告訴我們關於你的安裝歷史嗎? – araqnid 2012-07-27 11:12:01
我使用postgresql.com中的單擊安裝程序安裝了它。這是工作正常之前,我的更新做山獅子 – 2012-07-27 11:19:35
我解決了這個問題卸載並重新安裝Postgresql。謝謝 – 2012-07-27 12:54:40