【问题标题】:How to connect a mysql server to grafana?如何将mysql服务器连接到grafana?
【发布时间】:2018-09-21 13:17:43
【问题描述】:

我是 grafana 的新手,我需要将我的数据库 (mysql) 连接到它。

我尝试如下配置custom.ini文件,

我添加了关于数据库的下一部分

#################################### Database 
####################################
type = mysql
host = localhost:3306
name = grafana (db on my sql server)
user = grafana (user on my sql server)
#### If the password contains # or ; you have to wrap it with triple quotes. 
Ex “”"#password;"""
password =***** (password of my sql user)

以及关于会话的下一部分

#################################### Session ####################################
[session]


provider = mysql (at the beginning)

provider_config = grafana:*******@tcp(localhost:3306)/grafana 
provider = mysql (at the end)

当我尝试连接到服务器时,我收到此错误:“Service init failed: Migration failed err: this authentication plugin is not supported”

我是 grafana 的新手,不知道是否需要在 custom.ini 中设置更多想法

如果有人能弄清楚这里出了什么问题,我将成为世界上最幸福的人 :D

感谢您花时间阅读本文,非常感谢救世主!!

【问题讨论】:

    标签: mysql connection grafana


    【解决方案1】:

    我终于找到了问题所在。事实上,mysql 8 有一些权限特性,这给连接到 grafana 或读取文件带来了很多问题。所以我安装了mysql 5.7,一切都很好!

    【讨论】:

      猜你喜欢
      • 2019-01-25
      • 1970-01-01
      • 2021-03-31
      • 2018-07-23
      • 2017-05-28
      • 2014-07-27
      • 2014-11-12
      • 2019-05-13
      • 2015-06-08
      相关资源
      最近更新 更多