浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
PostgreSQL将从7.5版开始支持windows.
http://www.hagander.net/pgsql/win32snap/
我看这里面的安装指南:

Setting Up the Server


1. Unzip download into a folder of your choice (example: c:\postgres)
2. Add the newly created bin and lib folder to your path (inside the NT environment settings).
3. Add PGDATA environment variable to point to the folder which will contain your database (c:\postgres\data).

4. Open a new command window and type: initdb -L "c:/postgres/share" (note the unix style slashes for compatibility reasons). If you get a bad command error, your path is not set up properly. If you see no error messages, the template database is constructed and the server is ready to be started.
5. From the command window, type: postmaster. This will start the server. Leave this window open as long as you want the server to run. To shut down the server, close the window or press Control-C while the window has the focus.
6. Open another command window and type psql template1. Success indicates the server is running and you have logged into the server. You will probably want to create a database right away. For further information on setting up and administrating PostgreSQL please check out the standard documentation.

在 os 中 设置:
set path=%path%;c:\postgres\data;c:\postgres\BIN;c:\postgres\LIB



posted on 2004-07-18 11:33  浙林龙哥  阅读(783)  评论(0编辑  收藏  举报