Nguyễn Thị Thuý
New member
Can’t connect to PostgreSQL database?
Answer
PostgreSQL psql: could not connect to server: Connection refused
Answer
PostgreSQL psql: could not connect to server: Connection refused
- Step # 1: Allow remote IP address to access PostgreSQL. You need to open file called /var/lib/pgsql/data/pg_hba.conf. …
- Step # 2: Allow communication over TCP/IP. …
- Step # 3: Restart PostgreSQL server. …
- Step # 4: Test your setup. …
- See also: