I'm trying to set my server up and came across some troubles related to Unix domain sockets. I don't have so much experience with Unix, despite the stack for web development: Apache, PHP and SQL. I installed Apache and PostgreSQL, but trying to access the psql
shell I came across the following error:
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist
My pg_hbs.conf
has this appearence:
TYPE | DATABASE | USER | ADDRESS | METHOD |
---|---|---|---|---|
local | all | root/postgres/home (all was tried already) | ||
IPv4 | ||||
host | all | root | 127.0.0.1:5232 | scram-sha-256 |
IPv6 | ||||
host | all | root | ::1/128 | scram-sha-256 |
The error references the "local" field in the config file. I just opened up some documentation about Unix sockets, it's very interesting, and I will want to know more about but, despite looking like "I'd be to recreating the wheel", I just want to set the environment for development right now.
Any help will be welcome.
Thanks.