grafana登录密码重置

grafana登录密码重置

[root@host-47-98-97-124 ~]# sqlite3 /var/lib/grafana/grafana.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

sqlite> select * from user;
1|0|admin|admin@localhost||f5ba3888f41528d49dc7b76828471c4764a2ffa6851da02d9fdab63f0b0d2f421933d207f7d68c67fa77d3d1e853c6dabd58|B01v3s30V5|u02GG1gBvK||1|1|0||2018-07-07 07:10:04|2018-07-07 07:11:50|0|2018-07-07 07:23:57

sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6',
   ...> salt = 'F3FAxVm33R' 
   ...> where login = 'admin';
sqlite> .exit

重启服务
[root@host-47-98-97-124 ~]# /bin/systemctl restart grafana-server.service

登录grafana:admin/admin

你可能感兴趣的:(监控系统)