i got a error while user is trying to connect to the mysql database.
Error in processPendingCampaigns: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1122:18)
at afterConnectMultiple (node:net:1689:7) {
code: 'ECONNREFUSED',
fatal: true,
[errors]: [
Error: connect ECONNREFUSED 127.0.0.1:3306
at createConnectionError (node:net:1652:14)
at afterConnectMultiple (node:net:1682:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3306
},
Error: connect ECONNREFUSED ::1:3306
at createConnectionError (node:net:1652:14)
at afterConnectMultiple (node:net:1682:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 3306
}
]
}
do you know what should be the host in .ENV DBHOST=localhost
#nodejs