notes/db/sql/postgres/feature/cfg/enable-remote-connections.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

19 строки
391 B
Plaintext

2016
https://blog.bigbinary.com/2016/01/23/configure-postgresql-to-allow-remote-connection.html
.../data/postgresql.conf
...
listen_addresses = '*'
...
.../data/pg_hba.conf
host all all all md5
...
!!!
host all all all trust
check by:
psql -h localhost -U postgres
PGPASSWORD=pgpass psql -h localhost -U postgres