How to configure postgresql for the first time?

I have just installed postgresql and I specified password x during installation.
When I try to do createdb and specify any password I get the message:

createdb: could not connect to database postgres: FATAL: password authentication failed for user

Same for createuser.

How should I start?
Can I add myself as a user to the database?

10 Answers
10

Leave a Comment