PostgreSQL7.5安装

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



你可能感兴趣的:(PostgreSQL)