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
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