Re: createdb: could not connect to database

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: createdb: could not connect to database
Date: 2006-02-04 18:45:36
Message-ID: 20060204184535.GE10211@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Smith 2006-02-04 19:35:24 Re: createdb: could not connect to database
Previous Message Devrim GUNDUZ 2006-02-04 18:38:06 Re: createdb: could not connect to database