Installing Postgresql 7.4.2

From: "Philippe Verschooten" <ph(dot)verschooten(at)pi(dot)be>
To: "pgsql-novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Installing Postgresql 7.4.2
Date: 2004-05-18 07:30:24
Message-ID: HXWFIO$B324EDB50BFB0EF53D8D3E6A59CC2E11@scarlet.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I followed your advice (Andrew Hammond), but I was confronted with another problem: I got no
prompt …
Here follows the output:

[PowerBook06:/usr/local/pgsql] philippev% /opt/local/bin/initdb --locale=C -D /usr/local/
pgsql/data
The files belonging to this database system will be owned by user "philippev".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /usr/local/pgsql/data... mkdir: /usr/local/pgsql/data: Permission denied

initdb: failed
[PowerBook06:/usr/local/pgsql] philippev% su postgres
Password:
[PowerBook06:/usr/local/pgsql] postgres% /opt/local/bin/initdb --locale=C -D /usr/local/
pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /usr/local/pgsql/data... ok
creating directory /usr/local/pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating directory /usr/local/pgsql/data/pg_clog... ok
selecting default max_connections... 50
selecting default shared_buffers... 300
creating configuration files... ok
creating template1 database in /usr/local/pgsql/data/base/1... ok
initializing pg_shadow... ok
enabling unlimited row size for system tables... ok
initializing pg_depend... ok
creating system views... ok
loading pg_description... ok
creating conversions... ok
setting privileges on built-in objects... ok
creating information schema... ok
vacuuming database template1... ok
copying template1 to template0... ok

Success. You can now start the database server using:

/opt/local/bin/postmaster -D /usr/local/pgsql/data
or
/opt/local/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start

[PowerBook06:/usr/local/pgsql] postgres% /opt/local/bin/postmaster -D /usr/local/pgsql/data
LOG: database system was shut down at 2004-05-18 08:45:19 CEST
LOG: checkpoint record is at 0/9B2E88
LOG: redo record is at 0/9B2E88; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 536; next OID: 17142
LOG: database system is ready
createdb test
psql test

Thanks for helping me further.
Philippe

------------------------------------------------------------
With Scarlet ADSL you could upload at speeds up to 384 Kbits
More info at http://www.scarlet.be/nl/consumer/adsl

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Chris Odle 2004-05-19 00:52:05 psql connection error
Previous Message Andrew Hammond 2004-05-17 20:11:32 Re: INSTALLING POSTGRESQL 7.4.2