Hello all. When I’m connecting from a serverless Function to a managed MySQL DB using the VPC network host name, the connection is refused:
"error":"connect ECONNREFUSED 10.108.0.2:25060"
My question: are we forced to use the public host name of the DB from a Function, or am I missing something? When I will link this Function to an App on the App Platform and have this App a trusted source of the DB - will that allow me to use the internal host name from the Function?
Thanks! Mor
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey @morsagmonstarfish,
Indeed, this is not yet possible with the stand-alone functions. You would need to deploy them as part of an App or use the public Database endpoint.
It looks like someone has had the same idea before and has posted it on our Product Ideas board. The best thing to do would be to head over and add your vote to it, as well as adding any additional information in the comments for exactly what you’d like to see implemented!
Hope that helps!
- Bobby.