0
votes

I need to connect to remote mysql on different server and my nodejs code is deployed on google cloud. I have tried with host ip, username password of remote mysql, but giving following error:-

{"errorno":"ETIMEDOUT","code":"ETIMEDOUT","syscall":"connect","fatal":true}

1

1 Answers

0
votes

ETIMEDOUT is a Node.js networking error. You will need to tinker with you firewall rules to allow the connection.

Probably opening port 3306 will solve the issue. Here's the documentation for setting up a remote access to MySQL [1] and the networking side [2]