0

I have installed postgres via brew. However, after running rake db:create I get error

role 'posgres' does not exist

I can not run psql as role of my user does not exist, which is logical, but I can not login with -u postgres either. Any suggestions, how to create postgres user ?

2

1 Answer 1

0

It seems like the service is not running / turned on after instal.

Documentation reference: https://www.postgresql.org/docs/current/static/server-start.html

Then perform initdb /[data location]

Then you will need to sudo to postgres user (the service user) to issue commands to the database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.