KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to set up Postgres for the first time, and I need to create a user with permissions to read and create databases. However, when I use: createuser username in my terminal I get the following message: createuser: could not connect to database postgres: FATAL: role "tom" does not exist Tom is my Ubuntu user account that I'm logged into right now. I'm trying to create a username of "postgres" then do a psql -U psql template1 so I can create a database and assign an owner to it for my Rails app.
Tags (comma-separated)
Save Edits
Cancel