1.安装 sqlite
bash
yum -y install sqlite
2.找到 grafana.db
bash
find / -name grafana.db
3.修改密码
bash
sqlite3 /var/lib/ambari-metrics-grafana/grafana.db
update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin';
.exit
登录即可