When I put postgres -D /usr/local/var/postgres
in terminal, I get this back:
FATAL: data directory "/usr/local/var/postgres" has wrong ownership HINT: The server must be started by the user that owns the data directory.
How could I fix with that? Thanks~
Check the what the owner is of that dir by doing
You should see something like
Assuming it's "postgresuser", then run your database with