[root@host~]#
sqlite3 /var/lib/grafana/grafana.db
sqlite version 3.7.17 2013-05-20 00:56:22Enter ".help" for instructio
nsenter 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]#sy
stemctl restart grafana-server.service
重置后密码登录grafana:admin/admin