I installed mysql inside docker and can be used in mac. Host is 127.0.0.1
after I put my node application on docker using docker"s build
command, host reported the following error
127.0.0.1
or 0.0.0.0
connect ECONNREFUSED 0.0.0.0:3306
at Protocol.Object.<anonymous>.Protocol._enqueue (node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Protocol.handshake (node_modules/mysql/lib/protocol/Protocol.js:51:23)
at Connection.connect (node_modules/mysql/lib/Connection.js:118:18)
at new connect (sdk.js:23:29)
at Object.test (sdk.test.js:44:24)