| From: | Shane Ambler <pgsql(at)007Marketing(dot)com> |
|---|---|
| To: | PostgreSQL Mailing lists <pgsql-general(at)postgresql(dot)org>, Jonathon McKitrick <jcm(at)FreeBSD-uk(dot)eu(dot)org> |
| Subject: | Re: Problem with 'postgres' db with 8.0 on a MacBook |
| Date: | 2006-06-08 02:24:15 |
| Message-ID: | C0ADC067.433BD%pgsql@007Marketing.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
One thing I have noticed with my install (may be something carrying over
from an old version or howto I followed way back) is that the main user is
pgsql but the default db is postgres I find I need to use
#psql -U pgsql -d postgres
By default psql tries to connect to the database of the same name as the
pgsql user you log in as (unless specified with the -U option it will use
the current system username)
You may want to use '-d test' to match the test db you created with the
previous instruction or another that shows in the psql -l list.
On 8/6/2006 3:18, "Markus Schiltknecht" <markus(at)bluegap(dot)ch> wrote:
> Hi Jonathon,
>
> Jonathon McKitrick wrote:
>> : # psql template1 -c "CREATE DATABASE test;"
>>
>> CREATE DATABASE
>>
>> is the result.
>
> Looks good. Can you connect to that database then?
>
>> : What does psql -l say?
>>
>> FATAL: database 'postgres' does not exist
>
> As Tom said: check if you are really calling you self-compiled binaries:
>
> # which pgsql
>
> Markus
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chris | 2006-06-08 02:35:59 | Re: date value not geting inserted properly |
| Previous Message | Dave Felt | 2006-06-07 23:42:38 | Problem finding libpq.so.4 in PG 8.1.4 RH EL4 |