New Node Server serving pages - DB not connecting

This morning I felt like I was walking on water - set up my first node.js server.

Pages were showing… but cannot use the login page. Getting this error:

“status”: “500”,
“code”: “ENOTFOUND”,
“message”: “getaddrinfo ENOTFOUND db”,
“stack”: “Error: getaddrinfo ENOTFOUND db\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:72:26)\n --------------------\n at Protocol._enqueue (/home/ppswealthuser/\n at Protocol.handshake (/home/ppswealthuser/\n at Connection.connect (/home/ppswealthuser/\n at /home/ppswealthuser/\n at new Promise ()\n at Client_MySQL.acquireRawConnection (/home/ppswealthuser/\n at create (/home/ppswealthuser/”

Hope one of the guru’s can help…

Community Page
Last updated: