I\'m running a server on c9.io using Node.js and trying to connect to Mysql I guess I get this error:
Error: getaddrinfo ENOTFOUND
I was facing this issue. I did fix it simply you have to change your configuration of a connection string like if you are running on local machine try
host:'localhost' or host:'127.0.0.1'
...and set your user name and if you want this to publish your code on server then give the host according to server if in docker container give it name host:'db'.