2013-05-04 118 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文件。但它不起作用。

回答