Já pesquisei sobre, mas não consegui reverter o erro de conexão abaixo.
Error: connect ECONNREFUSED 127.0.0.1:3007
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
--------------------
at Protocol._enqueue (C:\Users\rogerio.ribeiro\alura-node\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at Protocol.handshake (C:\Users\rogerio.ribeiro\alura-node\node_modules\mysql\lib\protocol\Protocol.js:51:23)
at Connection.connect (C:\Users\rogerio.ribeiro\alura-node\node_modules\mysql\lib\Connection.js:116:18)
at Object.<anonymous> (C:\Users\rogerio.ribeiro\alura-node\index.js:4: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: 3007,
fatal: true
}