Help needed connecting to MySQL database

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 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

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.