I'm quite new to PostgreSQL and I'm following a #Udacity course to learn about it.
In the course is mentioned that the default Postgres user is "postgres" so I only need to use the following line to create a DB from the terminal, in order to create a "sample_database_1" database:
createdb sample_database_1
When I do this I get the following error:
createdb: error: no se pudo conectar a la base de datos template1: FATAL:
no existe el rol «jvillarroel»
which means that the user "jvillarroel" (which is the same as my Windows 10 admin session) doesn't exist.
So:
- How do I change the default user to be "postgres"?
- What am I doing wrong here?
- Is some configuration the installation?
Any tip of advice will be very well received.
Regards!