postgresql rookie needs help initial setup help

From: barry kimelman <perlmaster56(at)gmail(dot)com>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: postgresql rookie needs help initial setup help
Date: 2020-01-17 21:21:52
Message-ID: CAEOpmvrbG-L7U04t9jkSoHcbwA9OwsdPcABsvBiw5dybf8zG1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

Although I have many years of database experience, I am new to postgresql.

My system is a 64 bit windows 10 laptop. I just downloaded and installed
postgresql. The installation completed without any errors or complaints.

I was able to create a database with "createdb -U postgres mydb"

Now I want to be able to create a non administrator user so I tried the
following:
createuser --password -U postgres myusername

I was prompted for the password for "postgres" but I was not prompted for
the password for the new user.

I tried to run a createdb command for the new user but password
authentication failed.
Why was I not prompted for a password during the creation of the new user?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2020-01-17 21:39:35 Re: postgresql rookie needs help initial setup help
Previous Message Lætitia Avrot 2020-01-15 13:05:37 Re: Maintenance solutions