Thank you for @antonio reply.
I think my description is not accurate enough.
I have applied for a MySQL space in the company. If I want to read and write MySQL, I need to use SSL to connect.
When I use Python to write data, I use the following code:
Grafana only need valid permission so that when you add the MySQL datasource in it, it can access it from that Database user you had defined (the user should have the right PRIVILEGES so that it can allow remote access).
You can take a look at this page which defines how to do it in a very nice detailed description.
Thanks for @usman.ahmad reply.
Grafana, which I have used for two years, is a favorite.
I have also used many DataSources, such as Prometheus, InfluxDB, MySQL, etc.
However, the MySQL to be used this time requires SSL connection. The biggest problem I have now is:
When I use MySQL, if I do not set TLS or CA Cert, the log will show that I cannot access it.
But when I use CA Cert, it will always remind me:
db query error: x509: certificate signed by unknown authority
This is really annoying!
So, do you have any suggestions or methods?
Or, how to use TLS or Cert in Grafana’s MySQL?