Pgsql remote machine cannot connect database error handling method

Source: Internet
Author: User
Tags error handling postgresql

Due to the limited local resources, in the public testing environment to build a pgsql environment, from the database local localhost access to normal, the same network segment of the remote machine access reported the following error

"Server closed the connection unexpectedly. This probably means the server terminated abnormally before or while processing the request "

Check the PG Log for error log Fatal:no pg_hba.conf entry for host "XX. Xx. Xx. XX ", the reason for this error is because the client remote access PostgreSQL is limited because PostgreSQL is not able to connect by default except for machines outside the machine. Modify the pg_hba.conf and postgresql.conf two configuration files to resolve.

Please refer to 44810899 for the modification method.

Reference Document Address:

Program link PostgreSQL times wrong "No pg_hba.conf entry"-CSDN Blog
44810899

Pgsql remote machine cannot connect database error handling method

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.