重置grafana密码

元气小坏坏 提交于 2020-01-10 10:40:52
[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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!