Answers for "PG::ConnectionBad: 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
0

unhandledpromiserejectionwarning: error: no pg_hba.conf entry for host

var conString = "pg://admin:guest@localhost:5432/Employees";
var client = new pg.Client(conString);
client.connect();
Posted by: Guest on June-08-2021

Code answers related to "PG::ConnectionBad: FATAL: no pg_hba.conf entry for host"

Browse Popular Code Answers by Language