创建数据库及账号
mysql> create database grafana DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; mysql> GRANT ALL ON grafana.* TO 'grafana'@'127.0.0.1' IDENTIFIED BY 'grafana';
修改database配置文件
[database] type = mysql host = 127.0.0.1:3306 name = grafana user = grafana password = grafana