Report this

What is the reason for this report?

Can't connect to MySQL using Node.JS

Posted on March 15, 2016

First of all, I never use Linux and Digital Ocean

I already created a droplet of MySQL and change my password after login for the first time

and try to connect using Node.JS

but an error occured

[Error : connect ECONNREFUSED]
code : 'ECONNREFUSED'
errno : 'ECONNREFUSED',
syscall : 'connect',
fatal : true

Thank you very much

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.