我目前正在Windows計算機上設置postreSQL服務器。連接拒絕PostgreSQL服務器
我想創建我的第一個數據庫,但由於密碼驗證失敗而無法創建createdb函數。因此,我發現這個網站上的以下問題:
How to configure postgresql for the first time?
不過,我想我忘了;在結束:
ALTER USER postgres with encrypted password 'xxxxxxx';
而現在,當我嘗試推出PSQL,我有以下錯誤:
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Active code page: 1252
psql: 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?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Press any key to continue . . .
什麼我可以做些什麼來解決這個問題的任何想法?
您是否認爲這確實是導致問題的缺失的半列?
你有關於如何在Windows上設置postgreSQL數據庫的教程嗎?到目前爲止,我發現的只有Linux。
嗨,謝謝你的回答。我重新啓動了電腦幾次,但沒有解決問題。刪除所有配置文件後卸載並重新安裝解決了問題,儘管我寧願找到一個更好的方法來解決問題。 – Aurel
配置文件可能有一些錯誤的參數(可能是錯誤的端口號或註釋掉的部分)。很高興它解決了 – edenzik