PostgreSQL can not be used to resolve IP connection

Did not come back for too long, leading to a lot off updates, almost can not keep up, save to add a lot of (but have forgotten what the want to write a little review of it, crying chirp ...)

problem:

This machine can use localhost PostgresSQL connection, an IP address can not be used to connect

Solution:

Open the "Tools" to find the "Server Configuration", find "" pg_hba.config "to be modified.

Double-blank line, fill the map data, wherein the IP address: gateway / 19 (19 may be replaced by other numbers, such as 32, 24, etc.), then save it.

Note:

If editing an "pg_hba.config" modify the error, leading to not see the changes in the tool, do not panic, look for "pg_hba" in the PostgreSQL installation path, usually in the "data" folder, find the "pg_hba.conf" file then opened by Notepad modification.

About local changes in the last position in the file.

"/ 19" after filling out the ip address of time must not forget to enter the gateway was stupid to cry himself.

Guess you like

Origin www.cnblogs.com/tangguobo/p/11021832.html