Hi. I've recently switched from Ubuntu to openSUSE. After installing postgresql following instructions given on openSUSE wiki, I tried to run sudo -u postgres psql but it required a password.
Based on postgresql documentation there's no default password for postgres. Anyway, in /var/lib/pgsql/data/pg_hba.conf I changed the authentication method for local all local users to trust, restarted postgresql service and tried again but still a password was required.
I even tried setting a password for postgres via psql but nothing changed.
Based on postgresql documentation there's no default password for postgres. Anyway, in /var/lib/pgsql/data/pg_hba.conf I changed the authentication method for local all local users to trust, restarted postgresql service and tried again but still a password was required.
I even tried setting a password for postgres via psql but nothing changed.