【发布时间】: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