I have never worked with database stuff. I need to set up a database for Moodle. I know I have PostgreSQL 8.3 installed on my computer. I try to create a new database, and it responds
createdb: could not connect to database postgres: FATAL: Ident authentication failed for user "bob"
or
createdb: could not connect to database postgres: FATAL: the database system is shutting down
I try to create a new user by typing
sudo -u postgres createuser -D -A -P myuser
and it responds
createuser: could not connect to database postgres: FATAL: the database system is shutting down
I don't know what I am doing wrong. My copy of PostgreSQL must not like me.
I would appreciate any help. Thank you.