ta dando esse erro: [nodemon] starting node index.js
consign v0.1.6 Initialized in C:\Users\Miguelito\Desktop\alura
- .\controllers\atendimentos.js
servidor rodando na porta 3000
Error: ER_ACCESS_DENIED_ERROR: Access denied for user ''@'localhost' (using password: YES)
at Handshake.Sequence.packetToError (C:\Users\Miguelito\Desktop\alura\nodemodules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Handshake.ErrorPacket (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\protocol\sequences\Handshake.js:123:18)
at Protocol.parsePacket (C:\Users\Miguelito\Desktop\alura\nodemodules\mysql\lib\protocol\Protocol.js:291:23)
at Parser.parsePacket (C:\Users\Miguelito\Desktop\alura\nodemodules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket. (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\Connection.js:88:28)
at Socket. (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\Connection.js:526:10)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at Protocol.enqueue (C:\Users\Miguelito\Desktop\alura\nodemodules\mysql\lib\protocol\Protocol.js:144:48) at Protocol.handshake (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\protocol\Protocol.js:51:23) at Connection.connect (C:\Users\Miguelito\Desktop\alura\node_modules\mysql\lib\Connection.js:116:18) at Object. (C:\Users\Miguelito\Desktop\alura\index.js:5:9) at Module.compile (node:internal/modules/cjs/loader:1101:14) at Object.Module.extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module.load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:79:12) at node:internal/main/run_main_module:17:47 { code: 'ER_ACCESS_DENIED_ERROR', errno: 1045, sqlMessage: "Access denied for user ''@'localhost' (using password: YES)", sqlState: '28000', fatal: true }