Mysql econnrefused :3306

Hello Render Support Team,

I’m experiencing an issue with my Node.js application deployed on Render. The application includes a front-end and back-end, and it connects to a MySQL database hosted on a separate server. While the connection works perfectly when tested locally, I encounter the following error when the app is deployed on Render:

Error: connect ECONNREFUSED 130.162.54.212:3306

Just to mention that until yesterday, everything was working fine.

Could this issue be related to network settings or firewall rules on Render’s side? Are there specific IP addresses or ranges from Render that need to be whitelisted on my database server?

Additionally, if SSL/TLS is required for the connection, could you please guide me on how to configure it in the Render environment?

Thank you for your assistance.

Best regards,

It’s unlikely that this is the fault of Render itself. Please see Static Outbound IP Addresses – Render Docs regarding the IP addresses Render would use for external communication. SSL/TLS is client/code dependent, there is no single way to accomplish it. It depends on your utility, code language, framework, etc.

Hello.
I have the same issue, @Denny have you been able to solve it?

IP “130.162.54.212” corresponds to “sql.freedb.tech” which is where I have my database too.

It works in local :sweat_smile:

Thank you.

No i didn’t solve the problem, I contacted the support team from db host and I got this answer

'Hello,

We have an mechanism in place, which blocks the IP which makes three wrong attempts.

It seems like our system has blocked the render IPs.’

No idea what’s next, probably its up to db host they need to unblock the the IPs

Contact them maybe they will hear our voice :joy:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.