Score:0

How to access PostgreSQL database with psql after it has been created via initdb and pg_ctl?

in flag

How to access PostgreSQL database with psql after it has been created via initdb and pg_ctl?

Particularly, in my project folder, I see:

> pg_ctl status -D db
pg_ctl: server is running (PID: 17159)
/usr/lib/postgresql14/bin/postgres "-D" "db"

But how can I connect to this with psql?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.