Hey so after I ran into somes issues I decided to uninstall Postgres and re-install it (re install a newer version btw).
I'm trying to access postgres to create a new db for my Rails app so I run su postgres
or su _postgres
then I am asked a password but nothing that I enter works.
So I tried sudo -u postgres psql
and got
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
I tried also to disable SIP (see: here)
but it didn't work either. same results.
I don't know what to do. Any idea ? I am using Mac OS High Sierra 10.13.6.
sudo -u _postgres psql
? – Philbopsql: FATAL: role "_postgres" does not exist
. What's wrong ? – Enarthrosispsql -u postgres
– Ctnpsql: invalid option -- u
– Enarthrosispsql -U postgres
– Ctnpsql: FATAL: role "postgres" does not exist
– Enarthrosis