Re: psql on Mac

From: Adam Jensen <hanzer(at)riseup(dot)net>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: psql on Mac
Date: 2018-10-23 23:23:13
Message-ID: 0f1cc036-8698-36de-1229-5b095f4fb8e0@riseup.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-novice

Have you tried being explicit about both the database name and the user
name?

psql --dbname=lecture --username=ozan

or

psql -d lecture -U ozan

On 10/23/2018 06:26 PM, Ozan Kahramanogullari wrote:
> Thank you, Andrej. I tried the instructions in this website. However,
> this did not provide the desired outcome. I am pasting the command line
> below.Also, the command "psql -h localhost" did not work.
>
> XXX:src3 ozan$ psql -h localhost
>
> Password: 
>
> psql: FATAL:  password authentication failed for user "ozan"
>
>
> XXX:src3 ozan$ psql -U postgres 
>
> psql (10.5)
>
> Type "help" for help.
>
>
> postgres=# CREATE USER ozan WITH PASSWORD 'parrot';
>
> CREATE ROLE
>
> postgres=# \q
>
>
> XXX:src3 ozan$ psql
>
> Password: 
>
> psql: FATAL:  database "ozan" does not exist
>
>
> XXX:src3 ozan$ psql -U postgres 
>
> psql (10.5)
>
> Type "help" for help.
>
>
> postgres=# GRANT ALL PRIVILEGES  ON DATABASE lecture to ozan;
>
> GRANT
>
>
> postgres=# \q
>
>
> Ozan's MacBookPro:src3 ozan$ psql
>
> Password: 
>
> psql: FATAL:  database "ozan" does not exist
>
>

In response to

  • psql on Mac at 2018-10-23 22:26:37 from Ozan Kahramanogullari

Browse pgsql-bugs by date

  From Date Subject
Next Message Dilip Kumar 2018-10-24 05:44:29 Re: BUG #15455: Endless lseek
Previous Message Ozan Kahramanogullari 2018-10-23 22:26:37 psql on Mac

Browse pgsql-novice by date

  From Date Subject
Next Message Ozan Kahramanogullari 2018-10-24 06:50:40 Re: psql on Mac
Previous Message Ozan Kahramanogullari 2018-10-23 22:26:37 psql on Mac