From: Chris Mair <chrisnospam@1006.org>
To: pgsql-admin@postgresql.org
Subject: Re: psql: FATAL: Database "postgres" does not exist in
Date: Wed, 16 Aug 2006 01:52:45 +0200
Message-ID: <1155685965.28246.6.camel@dell.home.lan> (raw)
In-Reply-To: <927B56F984BD8049AC93F18F5629DAB20858E8AF@PRDCG4EXVW01-1.OSS.PRD>
References: <927B56F984BD8049AC93F18F5629DAB20858E8AF@PRDCG4EXVW01-1.OSS.PRD>
> Sorry to bother everyone with this, but I tried searching the site and
> the archive to no avail. I have read the docs and can't seem to get
> this ironed out. I get the error "psql: FATAL: Database "postgres"
> does not exist in the system catalog." when trying to start a psql
> session. This tells me that my install in not complete. I reread the
> the post install instructions and can't see anything obvious that says
> I missed something.
If you run psql without a database name as an option, it tries to
connect to a database with the same name as the $USER psql runs as.
So if you run it as user "postgres", and a db with that name does
not exist (yet), it will complain.
You should first create a database using "createdb somename" and then
connect with "psql somename".
Note you can get a list of available databases with psql -l.
>
> Any help is appreciated.
>
> Thanks
>
> John Vandervliet
Bye,
Chris.
--
Chris Mair
http://www.1006.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: chrisnospam@1006.org
Subject: Re: psql: FATAL: Database "postgres" does not exist in
In-Reply-To: <1155685965.28246.6.camel@dell.home.lan>
References: <927B56F984BD8049AC93F18F5629DAB20858E8AF@PRDCG4EXVW01-1.OSS.PRD> <1155685965.28246.6.camel@dell.home.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox