Getting localhost error on LIVE console

This is the error I am getting now after inputting my db credentials in server.cfg “Error -3008: getaddrinfo ENOTFOUND localhost” I cant find anything online.