Home > database >  The couple! For help! PostgreSQL connect server error
The couple! For help! PostgreSQL connect server error

Time:09-21

Unable to connect to server:

Could not connect to server: Connection refused
Is the server running on the host "IP" (47.95.188.219) and has
TCP/IP connections on port 10000?
I want to modify pg_hba. Conf file, but didn't find the position, installed on MAC pgadmine, not too will use, a great god help him

CodePudding user response:

Pg_hba.conf
To increase the line

# TYPE DATABASE USER CIDR - ADDRESS METHOD
The host all all 192.168.0.1/24 md5

Paragraph one IP address that you need, 24 mask digits

Postgresql.
in the confLine like listen_addresses='*'

The other postgresql the default port is 5432, how do you is 10000?

CodePudding user response:

I want to use postgresql to connect another web site, pg_hba. Conf I didn't find on the computer, I am the apple computer, what should I do

CodePudding user response:

refer to the second floor ImFooD response:
I want to use postgresql to connect another web site, pg_hba. Conf I didn't find on the computer, I am the apple computer, what should I do

With pg to connect other web site is what mean

CodePudding user response:

On the server library
Pg_hba.conf segment without you

CodePudding user response:

General web sites won't PostgreSQL publicly to the external port, it is not safe,
The default is localhost local connection.
  • Related