
使用筆記本編輯pg_hba.conf (X:\Program Files\PostgreSQL\8.4\data)
內容大致如下:
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
#host all all ::1/128 md5
將上面那行最後的md5改成trust後儲存
使用runpsql.bat((X:\Program Files\PostgreSQL\8.4\scripts)或是從程式集sql shell登入後即不用密碼可登入 畫面如下:
輸入畫面上的資料即可登入
再輸入 \password
然後輸入2次密碼就行了
修改完密碼 再把md5改回來 即可恢復...