Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Blutiger Anfänger

0 views
Skip to first unread message

Vaclav Snajdr

unread,
May 28, 2009, 11:24:04 AM5/28/09
to
Hallo,
habe heute mit postgresql unter SuSE11.0 angefangen mit:

a) initdb -D /data2/listen/vspostgre

b) postgres -D /data2/listen/vspostgre

(habe ich nun die Datenbank angelegt oder nur den "Verwaltungsteil"?
denn)

c) psql -d /data2/listen/vspostgre

bringt Fehler, daß die Datenbank nicht existiert

Frage: wie legt man dann die eigentliche Datenbank an?

Danke

--
Vaclav Snajdr

Roland Walter

unread,
Jun 6, 2009, 12:26:06 PM6/6/09
to
Hello!

My answer is in English (or some kind of that), as this is an English
speaking group.

Under openSUSE 11.0 it works different as described in the documentation.
The reason is, for LSB conformity all is wrapped in configuration files and
scripts, when using the provided packages from the distribution.

Vaclav Snajdr wrote:
> Hallo,
> habe heute mit postgresql unter SuSE11.0 angefangen mit:
>
> a) initdb -D /data2/listen/vspostgre

This is always needed, but as user 'postgres'.

>
> b) postgres -D /data2/listen/vspostgre
>
> (habe ich nun die Datenbank angelegt oder nur den "Verwaltungsteil"?
> denn)

This is not needed.

Edit '/etc/sysconfig/postgresql':

POSTGRES_DATADIR="/data2/listen/vspostgre"

As root start the database with:

rcpostgresql start

> c) psql -d /data2/listen/vspostgre
>
> bringt Fehler, daß die Datenbank nicht existiert
>


Local connection with 'psql' may now be possible as user postgres. Try to
connect to the database 'postgres'

psql postgres

Your error was to provide a path on the command line with psql. You must
only use a database name. The same psql command connecting to the 'postgres'
database but with switch '-d':

psgl -d postgres

You see, you may omit the '-d' when using psql.

Regards,
Roland.

--
Dipl.-Phys. Roland Walter
mailto: roland (dot) walter (dot) rwa (at) gmx (dot) net

0 new messages