Postgres SQL Permissions
I'm running through Lesson 1 again, and I always seem to run into problems when setting up the Postgres user account. I'm not sure how to manage accounts that may already exist, and the documentation online does not seem to address this directly, although maybe I'm just missing it. I'm a novice when it comes to PostgreSQL.
When I use the command 'createdb microblog' I get the error: "createdb: database creation failed: ERROR: permission denied to create database".
I had to create a new user with superuser permissions because for whatever reason I couldn't use my existing user account I had already created, and I was not sure how to access it. Either way, I'm unable to proceed through the lesson.
Does anyone have any advice on getting their bearings with PostgreSQL, particularly managing user accounts (especially if they already exist). The manual just keeps telling me to talk to the admin, but I am the admin. How do I give myself permission to create this database. Thanks!
Answers
Perhaps a more direct question would be how do I assign the right privileges to a user account to create a database? How can I log into one user account or another?