Skip to content

Cannot login to Grafana #69

Closed Answered by cjmair
cjmair asked this question in WLAN Pi OS
Discussion options

You must be logged in to vote

Just incase it is of help to anyone else, this is how I changed the admin password in Grafana

I had to install the sqlite3 tool, using, sudo apt-get install sqlite3
Make sure the grafana-service is stopped
sudo systemctl stop grafana
Run the sqlite3 tool on the database using, sudo sqlite3 /var/lib/grafana/grafana.db
At the sqlite3> prompt do the following
.tables
select * from user;

You should now see a list of users, look for the one that has admin@localhost in it, in my case the username was wlanpi
so at the sqlite3> prompt enter
update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where l…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cjmair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant