Friday 2 June 2017

Why am I getting ECONNREFUSED connecting to localhost MySQL from docker node app?

I have a locally running MySQL server.. it's NOT within a container. My app is going to be hitting RDS so no sense in going that route. My app was able to hit RDS no problem, as a test. But obviously I want to hit something local for local development.

From my terminal I can do mysql --user=root --password=password mydb successfully.

And as I'm not getting a timeout error, from my container I can ping 127.0.0.1:3306 with no issue.

I also used console to see I am definitely passing the right info, after having updated the values from RDS to locally running MySQL.



via Dave Stein

No comments:

Post a Comment