Re: [pgsql-novice] Daily digest v1.3706 (6 messages)

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: Michael Convey <smconvey(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [pgsql-novice] Daily digest v1.3706 (6 messages)
Date: 2015-11-17 02:26:57
Message-ID: 1659889.N3MqLQ1TXV@skynet.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Monday, November 16, 2015 05:36:08 PM Michael Convey wrote:
> ​Thank you. Assuming a default Fedora installation, if I am logged in as
> Linux user lab and I don't know the Linux "postgres"​ password, but I do
> know the PostgreSQL "postgres" role password; what is the syntax (from the
> Linux command line) to login as the "postgres" role and connect to the
> "postgres" database?

psql -U postgres postgres

It'll prompt for the password.

Make sure you've enabled md5 or password as an authentication method allowed
for local in pg_hba.conf.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message petrov.boris.v@mail.ru 2015-11-17 10:29:03 Different performance of two simple queries
Previous Message Alan Hodgson 2015-11-11 02:45:07 Re: Linux Users vs PostgreSQL Users