From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Agnar Renolen <agnar.renolen@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Getting started with first user.
Date: Tue, 9 Jan 2018 08:13:59 -0800
Message-ID: <3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com> (raw)
In-Reply-To: <CABE_MPz9M0XSkuzQdKSWh0=Mcs4T6JCy8UQ6n2j4aahY9_=b9A@mail.gmail.com>
References: <CABE_MPz9M0XSkuzQdKSWh0=Mcs4T6JCy8UQ6n2j4aahY9_=b9A@mail.gmail.com>
On 01/09/2018 01:48 AM, Agnar Renolen wrote:
> I have just installed PostGIS (Postgres9.6) on a Debian server using
> apt-get.
>
> But I have problems doing anything:
>
> I installed as root, but trying doing things as my local user "me"
>
> me> createuser me
> createuser: could not connect to database postgres: FATAL: role "me"
> does not exist
>
> Then, trying the same as root, but gettinge the same result.
>
> root> createuser me
> createuser: could not connect to database postgres: FATAL: role "root"
> does not exist
>
> 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"
>
> How do I get started?
https://wiki.debian.org/PostgreSql#User_access
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, agnar.renolen@gmail.com
Subject: Re: Getting started with first user.
In-Reply-To: <3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com>
References: <CABE_MPz9M0XSkuzQdKSWh0=Mcs4T6JCy8UQ6n2j4aahY9_=b9A@mail.gmail.com> <3c81114e-cab6-6abd-de40-ab5ba23006c2@aklaver.com>
* 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