(posted on Slack also).
Need help here. Im trying to connect to a mySQL database from a Redhat server using a simple Flux query. The database is on a different server that is accessible from the same subnet.
I am still using Infuxdb v2.7.11. Works fine on windows but comes up with:
**failed to initialize execute state: data source did not pass url validation: no such host**
No idea what this is referring to. I thought it might be name lookup but it even does it with either localhost or the actual IP Address of the db server.
What am I missing? Is there some extra mysql driver required on Linux - admittedly I already had a Mariadb installed on Windows so may have avoided the issue on the Windows environment.
I noted that there are references to installing a go mysql module but this either doesnt work or I am doing something wrong in the installation.
Simple Flux commands are:
import "sql"
sql.from(
driverName: "mysql",
dataSourceName: "user:pwd@tcp(10.10.100.2:6033)/reports",
query: "SELECT * FROM Devices",
)
It first appears at first glance to be an issue with the network connection but this is not the case as a telnet connection to the same server on the same port works.
telnet> open 10.10.100.2 6033
Trying 10.10.100.2...
Connected to 10.10.100.2.
Escape character is '^]'.
In addition to this, tcpdump shows that there is nothing exiting the server on this port when I run the Flux query