安裝完畢後,設置 PGHOME=F:PostgreSQL8.0,然後進入Dos,輸入 runas /user:postgres "cmd" 切換用戶,轉到postgresql的 bin 目錄,輸入
initdb --no-locale -D "F:\PostgreSQL\8.0\data" -L "F:\PostgreSQL\8.0\share"
如果成功,顯示
Success. You can now start the database server using:
""postmaster -D "F:/PostgreSQL/8.0/data"
or
""pg_ctl -D "F:/PostgreSQL/8.0/data" -l logfile start