I am attempting to create a database for a Rails application and I get the following error message ActiveRecord::NoDatabaseError: FATAL: role "jonathanreiser" does not exist. I am running Postgres 9.6 on OS X El Capitan, Version 10.11.15.
I saw there were similar questions on StackOverflow, but I tried implementing their answers with no success. For example, sudo -u postgres createuser jonathanreiser or sudo su - postgres does not work. Any help would be appreciated.
createuser? Have you tried using also the--pwpromptor--interactiveoptions?createuserissudo: unknown user: postgres. I haven't used--pwpromptor--interactiveoptions, how would I go about doing that? Also, what username are we referring to here? Is it the username that I sign onto my macbook with?