MySQL configuration doesn't work with the parameters I use in mysqli

Hei all!

I am trying to add a mysql datasource to an hosted Grafana page. I have a basic php page that I currently use to display my DB data, connecting to the DB using mysqli and a server name, user, password, and DB name. If I use the same parameters in Grafana than in my mysqli code, it refuses to connect :

dial tcp: lookup XXXXXXXXX.mysql.db on XX.XX.XXX.XX:53: no such host

With a name and numbers in there, obviously.

Anything I am doing wrong?