1. 程式人生 > >postgresql 解除安裝 重灌

postgresql 解除安裝 重灌

記錄一下令人窒息的安裝和解除安裝postgresql和bigsql

剛一開始裝了這兩個:

後來命令列執行createdb -U postgres newdatabase的時候提示不能在10.5版本下新建資料庫,因為找不到..嗯不知道怎那麼辦了於是就建在了9.5版本中寫完了實驗報告。

再然後,開始了艱難 的解除安裝和安裝過程。(解除安裝有坑)

控制面板解除安裝不乾淨,所以會導致開啟一個pgAdmin視窗有兩個postgresql資料庫。這個就會有問題,如果你想在後一個postgresql建立資料庫,那麼命令列

createdb -U postgresql newdatabase

的時候會報錯,例如

postgres not exist ;     

role not exist;  等等;

再後來還會有,connection refused之類的錯誤。。。

 could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?