Valid MySQL Database Unconnectable

The port is open and reachable
image

Database and credentials are valid, as I can use dbeaver to login
image

Grafana is being run on docker through coolify if that is relevant.
Here’s everything else I think might be relevant


image

2024-06-11T16:36:54.980922572Z logger=tsdb.mysql t=2024-06-11T16:36:54.98075667Z level=error msg="Query error" err="dial tcp 51.161.xxx.xxx:3306: connect: connection timed out"
2024-06-11T16:36:54.980985565Z logger=context userId=1 orgId=1 uname=admin t=2024-06-11T16:36:54.98089578Z level=info msg="Request Completed" method=GET path=/api/datasources/uid/bdogu75ljwmbke/health status=400 remote_addr=100.12.xxx.xxx time_ms=132577 duration=2m12.577048886s size=106 referer=http://grafana.bforbiggy.mooo.com/connections/datasources/edit/bdogu75ljwmbke handler=/api/datasources/uid/:uid/health status_source=server

In the past, someone else did have a connectivity problem when running grafana on docker instead of local but I couldn’t find much on the differences between grafana on local and grafana on docker

Running locally is not an ideal option for me as I’d prefer to keep it running as a docker container on coolify to keep everything in one place

can you install grafana as a side car with mysql?

I could do it for testing but it can’t be a permanent solution (I believe coolify auto-updates the container whenever restarting or updating)