Windows PowerShell
Copyright (C) Microsoft Corporation. Todos os direitos reservados.
Experimente a nova plataforma cruzada PowerShell https://aka.ms/pscore6
PS C:\Users\Rubinho\Desktop\Projeto NODEjs>
PS C:\Users\Rubinho\Desktop\Projeto NODEjs>
PS C:\Users\Rubinho\Desktop\Projeto NODEjs> npm start
> projeto-nodejs-rest@1.0.0 start C:\Users\Rubinho\Desktop\Projeto NODEjs
> nodemon index.js
[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
Error: connect ECONNREFUSED 127.0.0.1:3307
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
--------------------
at Protocol._enqueue (C:\Users\Rubinho\Desktop\Projeto NODEjs\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at Protocol.handshake (C:\Users\Rubinho\Desktop\Projeto NODEjs\node_modules\mysql\lib\protocol\Protocol.js:51:23)
at Connection.connect (C:\Users\Rubinho\Desktop\Projeto NODEjs\node_modules\mysql\lib\Connection.js:116:18)
at Object.<anonymous> (C:\Users\Rubinho\Desktop\Projeto NODEjs\index.js:5:9)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3307,
fatal: true
}
[nodemon] clean exit - waiting for changes before restart