`
Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
--------------------
at Protocol._enqueue (/home/barbosa/WorkSpace/estudos/nodejs-api-rest-aula-3/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Protocol.handshake (/home/barbosa/WorkSpace/estudos/nodejs-api-rest-aula-3/node_modules/mysql/lib/protocol/Protocol.js:51:23)
at Connection.connect (/home/barbosa/WorkSpace/estudos/nodejs-api-rest-aula-3/node_modules/mysql/lib/Connection.js:119:18)
at Object.<anonymous> (/home/barbosa/WorkSpace/estudos/nodejs-api-rest-aula-3/index.js:5:9)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3306,
fatal: true
}
[nodemon] clean exit - waiting for changes before restart`
estou com o mesmo problema aqui