安装完毕后,设置 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