0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Grafana の admin パスワードのリセット

Posted at

こちらのページと同様のことを Arch Linux で行いました。
Reset lost admin password of Grafana server (CentOS 7)

sqlite3 のデータベースを更新します。

$ sudo sqlite3 /var/lib/grafana/grafana.db
SQLite version 3.36.0 2021-06-18 18:36:39
Enter ".help" for usage hints.
sqlite> select login,salt from user;
admin|F3FAxVm33R
sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin';
sqlite> .exit

この操作をすると
user: admin
password: admin
になります。

Grafana のバージョンは次の通り

$ grafana-cli --version
Grafana CLI version 8.0.4
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?