2013-05-04 120 views
0

我正在使用Windows 7 32位版本。我已經安裝了Postgres 9.2。我已經啓動了數據庫使用無法啓動Postgres服務器

initdb -U postgres -A password -E utf8 -W -D "POSTGRESQL_ROOT\data" 

它已成功創建。當我嘗試啓動服務器時使用

"postgres" -D "POSTGRESQL_ROOT/data" 

我收到以下錯誤消息。

LOG: specifying both host name and CIDR mask is invalid: "::1/128" 
CONTEXT: line 82 of configuration file "POSTGRESQL_ROOT/data/pg_hba.conf 
" 
FATAL: could not load pg_hba.conf 

我檢查過pg_hba.conf文件,它的第82行如下所示。

主機的所有一切:: 1/128密碼

這種相似類型的問題上回答說添加上述行來pg_hba.conf文件。但它不起作用。

回答