Re: Getting started with first user. - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Getting started with first user.
Date
Msg-id 4a784095-414e-65f5-f24c-1c5d883fa5b8@iol.ie
Whole thread Raw
In response to Getting started with first user.  (Agnar Renolen <agnar.renolen@gmail.com>)
List pgsql-general
On 09/01/18 09:48, Agnar Renolen wrote:
> Then trying with the -U postgres option.
> 
> root> createuser -U postgres me
> createuser: could not connect to database postgres: FATAL: Peer 
> authentication failed for user "postgres"

You need to specify the host as well, to force a TCP/IP connection:

   createuser -U postgres -h localhost me

The default pg_hba.conf on Debian uses a Unix socket and peer 
authentication, hence the error you're seeing.

Ray.

-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: RES: help with generation_series in pg10
Next
From: Vitaliy Garnashevich
Date:
Subject: Re: Number of rows returned by Sort node