Re: createdb: could not connect to database

From: Paul Smith <phhs80(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: createdb: could not connect to database
Date: 2006-02-04 19:35:24
Message-ID: 6ade6f6c0602041135o24ff0786tde17898d32a9b187@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 2/4/06, Andreas Kretschmer <akretschmer(at)spamfence(dot)net> wrote:
> Paul Smith <phhs80(at)gmail(dot)com> schrieb:
>
> > On 2/4/06, Devrim GUNDUZ <devrim(at)commandprompt(dot)com> wrote:
> > > Did you start postgresql service?
> > >
> > > # service postgresql start
> >
> > Thanks, Devrim. After "service postgresql start", I get
> >
> > $ createdb mydb
> > createdb: could not connect to database postgres: FATAL: role
> > "psmith" does not exist
> > $
>
> Create a database user:
> Become root with su, then 'su - postgres', then createuser.
>
> Read & edit the file 'pg_hba.conf'
>
> http://www.postgresql.org/docs/current/static/client-authentication.html#AUTH-PG-HBA-CONF

Thanks, Andreas and Devrim. Now, I have postgres working fine here!

Paul

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Andreas Kretschmer 2006-02-04 21:09:57 Re: variables outside of functions
Previous Message Andreas Kretschmer 2006-02-04 18:45:36 Re: createdb: could not connect to database