From: Amn Ojee Uw <amnojeeuw@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: PostgreSQL - How to login with my Linux user account
Date: Thu, 27 Jul 2023 20:19:27 -0400
Message-ID: <ae4781f7-5221-0ea3-e2ed-611bd5078409@gmail.com> (raw)
I'd like to log into my newly installed PostgreSQL [ PostgreSQL 12.15
(Debian 12.15-1.pgdg120+1) ] using my linux account.
In trying to do that this web page
<https://alvinalexander.com/blog/post/postgresql/log-in-postgresql-database/>suggest
that I enter :
psql -d mydb -U myuser -W
However, that command requires a database_name (mydb), and PosgreSQL 12.15 being so freshly installed does not yet
have any database created by me.
How would you suggest I circumvent this challenge?
Mind you that, using the postgres account I have created other accounts.
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
chispa | Superuser | {}
pedro | Superuser | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
Thanks in advance.
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: amnojeeuw@gmail.com
Subject: Re: PostgreSQL - How to login with my Linux user account
In-Reply-To: <ae4781f7-5221-0ea3-e2ed-611bd5078409@gmail.com>
References: <ae4781f7-5221-0ea3-e2ed-611bd5078409@gmail.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