PostgreSQL在2003和Win7系統(tǒng)注冊成功后,但是無法啟動數(shù)據(jù)庫。解決辦法是,修改修改pgsql\data目錄下pg_hba.conf文件。
win2003 修改如下:
# IPv4 local connections:
host all all 127.0.0.1/32 trust
#host all all ::1/128 trust
# IPv6 local connections:
#host all all ::1/128 trust
win7修改如下:
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
# IPv6 local connections:
#host all all ::1/128 trust