当前位置:网站首页>Reset grafana login password to default password

Reset grafana login password to default password

2022-07-28 16:39:00 wo1769815

yum install sqlite-devel -y

First, open the database

sqlite3 /var/lib/grafana/grafana.db
And then modify user In the table admin User's password
 
# Look at the tables contained in the database
.tables
 
# see user Table content

select * from user;
 
# Reset admin The user's password is the default admin

update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin';
 
# sign out sqlite3
~~# .exit
 

The last restart grafana service

systemctl restart grafana-server

Enter local 3000 port , The account and password are admin Get into

原网站

版权声明
本文为[wo1769815]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/209/202207281528472581.html