重置grafana密码

[root@host~]# 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||9ae4590dc0933b5086b24d6f3f844f34634c8855b4cf2e4b325179431712b7f26da88222fe22875af3981f42129251d9fe2c|MrxEF1hOqo|oZ6ineBsQI||1|1|0||2019-06-28 09:33:20|2019-06-28 09:35:55|0|2019-06-28 10:14:13
sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6',
   ...> salt = 'F3FAxVm33R' 
   ...> where login = 'admin';
sqlite> .exit
重启服务
[root@host]#systemctl restart grafana-server.service
重置后密码
登录grafana:admin/admin
posted @ 2019-06-28 22:43  --smile  阅读(1771)  评论(0编辑  收藏  举报