From: | Ozan Kahramanogullari <ozan(dot)kah(at)gmail(dot)com> |
---|---|
To: | bee(dot)lists(at)gmail(dot)com, Jeff Frost <jeff(dot)frost(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org |
Subject: | Re: psql on Mac |
Date: | 2018-10-24 06:50:40 |
Message-ID: | CAPiqqLkSNNdbZbbA-s3HbPidbMATW5amM9dgCJcG0J+5GTRTJQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-novice |
Thanks, Bee!
I am happy to try Postico eventually.
Regarding psql "sudo su" to create the password seems to work to create the
database. However, it still asks for the password for the user "ozan"
although the setting is "trust" for "all" in the file "pg_hba.conf" file.
However, I am not getting what is happening in the background. I am still
wondering why this is not running as it is supposed...
Cheers,
Ozan
On Wed, 24 Oct 2018 at 01:25, Bee.Lists <bee(dot)lists(at)gmail(dot)com> wrote:
> Try Postico. It’s a Mac client. The two (terminal) and that app will
> flush out your needs.
>
> Second, su into the Postgres user to create users. Sounds like your users
> are bungled. Only the Postgres user can do stuff until you create another
> user with proper privs.
>
>
>
> > On Oct 23, 2018, at 6:26 PM, Ozan Kahramanogullari <ozan(dot)kah(at)gmail(dot)com>
> 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
> >
>
>
>
> Cheers, Bee
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-10-24 08:31:36 | Re: BUG #15455: Endless lseek |
Previous Message | Dilip Kumar | 2018-10-24 05:44:29 | Re: BUG #15455: Endless lseek |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-10-24 09:08:52 | Re: psql on Mac |
Previous Message | Adam Jensen | 2018-10-23 23:23:13 | Re: psql on Mac |