ERRCONREFUSED local PostgreSQL
Anonymous
TRIALOP
2 years ago
Error: connect ECONNREFUSED ::1:5432
at createConnectionError (node:net:1634:14)
at afterConnectMultiple (node:net:1664:40) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
Error: connect ECONNREFUSED 127.0.0.1:5432
at createConnectionError (node:net:1634:14)
at afterConnectMultiple (node:net:1664:40) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
can someone help me solving this error?
3 Replies
brody
EMPLOYEE
2 years ago
It looks like your code is trying to connect to a local Postgres database, please look at this docs page for a list of available variables
Anonymous
TRIALOP
2 years ago
so if i have .env file named DB_HOST, i have to change it to PGHOST instead?