Workaround for Linux-mounted PostgreSQL problems with Windows or Linux

Source: Internet
Author: User
Tags postgresql

PostgreSQL server run on Linux, client installed on Windows or Linux, using Navicat connection, need to modify the server configuration

Configuration method:

1. Modify the server-side/etc/postgresql/9.3/main/postgresql.conf file to
#listen_address = ' localhost ' changed to
listen_address= ' * ' (postgresql.conf This file is changed to remove the # to change the localhost to *)

2. Modify the/opt/postgresql/data/gp_hba.conf file

In which you increase the IP of the client, as follows, note the last line:
# TYPE DATABASE USER cidr-address METHOD
# "Local" is for Unix domain sockets connections only
Local all All trust
# IPV4 Local connections:
Host All 127.0.0.1/32 Trust
# IPV6 Local connections:
Host all:: 1/128 Trust


# IPV4 Local connections:
Host all 192.168.201.114/32 Trust (or change to host all 0.0.0.0/0 trust, allow all IP connections )
(gp_hba.conf This file is changed at the bottom of the above two words!) )

3. Restart the PG service
[Email protected] data]$/etc/init.d/postgresql restart

4. Now using the client connection is successful

Workaround for Linux-mounted PostgreSQL problems with Windows or Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.