After installing postgresql, I tried it out, typing createdb mydb, like it\'s written in the documentation. Then the following error occured:
createdb: could not
if the db is owned by user postgres you can do the following
postgres
createdb -U postgres dbname
since by default postgresql will trust connections from localhost.
su - postgres
and after you have been logged in:
createdb mydb