Connecting to google cloud SQL


I’m trying to connect with replit to a cloud SQL database on google platform that I’ve created there but I get a connection timed out error.

ChatGPT suggests that it is because I need to whitelist the replit IP in my cloud SQL instance. The problem, however, is that I think replit does not guarantee a fixed IP address for outgoing connections.

My question is, has anyone else managed to connect to a cloud SQL instance and if so how?

And further - is it the case that replit has a dynamic IP?

1 Like

Try whitelisting the IP address to allow all addresses.


Thanks, I’ll give that a try.

It worked.

Thank you very much.


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