PostgreSQL remote connection, fatal error: No PG_HBA.conf recorded for host “…”, users “…”, database “…”, SSL close

PostgreSQL remote connection method

Sometimes when connecting remotely, it will report Error connecting to the server: fatal error: not used for host “…”, User “…”, database “…”, pg_hba.conf record with SSL closed:

Share pictures

This is because the pg_hba.conf file is not configured correctly during remote connection.

The pg_hba.conf file is in the data folder under the Postgre installation file directory.

After the file is installed correctly, it should look like the following figure:

Share a picture

share picture

Add at the end of the file:

# TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all 0.0.0.0/0 md5

The end of the file should be:

Share a picture

Reconnect again, there should be no problem.

Note: Generally, to connect to PostgreSQL remotely, it should be connected immediately after clicking the “Connect” button. If you have to wait for a while, an error will usually occur———————— ———————— Copyright Statement: This article is the original article of the CSDN blogger “Passerby JIA”, which follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement for reprinting. Original link: https://blog.csdn.net/u013719339/article/details/78414188

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 748 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.