Hi, My name is Yemi. My FastAPI web service deployment is failing because I have not been able to connect to the MySQL database successfully as the run.py requires. I have followed the guidelines on how to create MySQL database and generate public key. But I need a string-like value for my DATABASE_URI for my app to work. I would appreciate if anyone can guide me in determining what the database uri should be.
If you have been using our “Private MySQL” deploy example, and it succeeded, then it should be pretty easy to connect to your database. See https://render.com/docs/deploy-mysql#connecting-to-your-database
I’m not sure what package you’re using to attempt the connection here so cannot give our more precise recommendations.
Make sure you’re using the right host:port value when attempting the connection.
Render Support, UTC+3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.