2014-10-10 161 views
-2

我在OS X 10.9.4上安裝了postgresql 9.3.5。我還用psql postgres來創建數據庫等。完全卸載Postgresql 9.3.5

在某些postgresql不再有效的問題中運行。錯誤是:

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

所以我brew uninstall postgres。嘗試重新安裝,但保持相同的錯誤。我查看了/ Library ....並刪除了postgresql文件夾。有沒有辦法徹底刪除這件事?我很想重新安裝這個mac,但這不是學習解決這個問題的很長途徑的方法。

+0

這聽起來更像是你可能沒有配置你的數據庫/設置正確。你是否100%確定你正確地配置了一切? – 2014-10-10 11:14:50

+0

是的。它工作得很好。我只是失去了發生的事情。我只想刪除所有內容並重新開始。 – Sylar 2014-10-10 11:22:23

回答

-1

Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion? 這應該工作,如果你以前曾使用BREW安裝Postgres的:

brew uninstall 

仔細檢查/usr/local/var/postgres也不見了。 如果與EnterpriseDB一起安裝,請使用第二個答案。你也可以嘗試它,因爲它似乎是一個完整的手動卸載。

編輯:經過進一步審查,看來這是多與OSX的Postgres的問題在哪裏,因爲它默認爲本地安裝而不是你的安裝:PostgreSQL error 'Could not connect to server: No such file or directory'

+0

是否做到了。重新安裝postgresql。當我在終端輸入psql postgres時,我仍然遇到同樣的錯誤。 – Sylar 2014-10-10 11:36:19

+0

你確定有一個「postgres」數據庫/關係嗎?試試'psql' – 2014-10-10 11:41:29

+0

我在第一次安裝時創建了一個數據庫。試過psql和相同的錯誤 – Sylar 2014-10-10 12:35:06