Unable to Connect to MySQL Container

Hello Docker Community,

I’m currently working on a project that involves using Docker Compose to set up a web application with a MySQL database. However, I’m having trouble connecting to the MySQL container from my application container.

Hi @jilodab924,

Welcome to the Kinsta Community!

Could you please confirm whether both the web app and the MySQL database are hosted here at Kinsta? Additionally, are they set up as separate applications (Application Hosting and Database Hosting)?

If possible, could you share more details about how you are attempting to connect to the database? It would also be helpful to know if you are encountering any error messages when trying to connect.

Thank you!