Cannot connect to remote postgresql

Source: Internet
Author: User
If postgresql is installed on a remote server, adding a server using pgAdmin will never work. Solution: Add hostall0.0.0.00trust to pg_assist.conf on the remote postgresql database and ensure that the parameter in postgresql. conf is set to listen_addresses *. After modification, restart: beaPostgreSQL.

If postgresql is installed on a remote server, adding a server using pgAdmin will never work. Solution: Add host all 0.0.0.0/0 trust to pg_assist.conf on the remote postgresql database and ensure that postgresql is enabled. in conf, set the parameter to listen_addresses = '*' and restart after modification:/bea/PostgreSQL/

If postgresql is installed on a remote server, adding a server using pgAdmin will never work.

Solution:

Add host all 0.0.0.0/0 trust to pg_assist.conf on the remote postgresql database.

Make sure that the parameter in postgresql. conf is set to listen_addresses = '*'

Restart after modification:

/Bea/PostgreSQL/9.3/bin/pg_ctl stop

/Bea/PostgreSQL/9.3/bin/pg_ctl start

If it is reported during startup, pg_ctl: no database directory specified and environment variable PGDATA unset sets the environment variables.

PGDATA =/bea/PPAs/9.3/data
Export PGDATA

If cst log: cocould not create IPv6 socket: IP address family not supported by the Protocol is reported, the connection is ignored and the connection is not affected.

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.