[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

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-01-29
  • 2021-10-24
  • 2021-11-21
  • 2021-08-28
  • 2022-01-19
  • 2021-07-10
猜你喜欢
  • 2022-12-23
  • 2022-03-11
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案