Answers for "unable to connect to server fatal no pg_hba.conf entry for host"

2

django.db.utils.operationalerror: fatal: no pg_hba.conf entry for host

You obviously do not have connection profile for user "user1" against 
database "ttio" on the machine. The only remote access that your 
pg_hba.conf currently specifies is for any user to the database with 
the same name as the user from address 127.0.0.200.

You need an entry like:

host ttio user1 <ip_address> <netmask>


The <ip_address> <netmask> combination is specific to your network 
configuration and refers to the IP address of the client.
Posted by: Guest on March-15-2021
1

no pg_hba.conf entry for host user database ssl off

Add or edit the following line in your postgresql.conf :

listen_addresses = '*'
Add the following line as the first line of pg_hba.conf. It allows access to all databases for all users with an encrypted password:

# TYPE DATABASE USER CIDR-ADDRESS  METHOD
host  all  all 0.0.0.0/0 md5
Restart Postgresql after adding this with service postgresql restart or the equivalent command for your setup.
Posted by: Guest on March-25-2021

Code answers related to "unable to connect to server fatal no pg_hba.conf entry for host"

Browse Popular Code Answers by Language