我是dm忘记密码
[tidb@esbprddb ~]$ tiup dm display dm-zabbix -R grafana
Starting component `dm`: /home/tidb/.tiup/components/dm/v1.5.6/tiup-dm display dm-zabbix -R grafana
Cluster type: dm
Cluster name: dm-zabbix
Cluster version: v2.0.6
Deploy user: tidb
SSH type: builtin
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
192.168.0.217:3000 grafana 192.168.0.217 3000 linux/x86_64 Up - /data/dm/deploy/grafana-3000
Total nodes: 1
###############重置密码
[root@localhost bin]# ./grafana-cli admin reset-admin-password admin
INFO[09-09|16:47:14] Connecting to DB logger=sqlstore dbtype=sqlite3
INFO[09-09|16:47:14] Starting DB migrations logger=migrator
INFO[09-09|16:47:14] migrations completed logger=migrator performed=0 skipped=279 duration=602.279µs
Admin password changed successfully ✔
[root@localhost bin]#
[root@localhost bin]# pwd
/data/dm/deploy/grafana-3000/bin/bin
重启grafana
[tidb@esbprddb ~]$ tiup dm restart dm-zabbix -N 192.168.0.217:3000
Starting component `dm`: /home/tidb/.tiup/components/dm/v1.5.6/tiup-dm restart dm-zabbix -N 192.168.0.217:3000
Will restart the cluster dm-zabbix with nodes: 192.168.0.217:3000 roles: .
Cluster will be unavailable
Do you want to continue? [y/N]:(default=N) y
+ [ Serial ] - SSHKeySet: privateKey=/home/tidb/.tiup/storage/dm/clusters/dm-zabbix/ssh/id_rsa, publicKey=/home/tidb/.tiup/storage/dm/clusters/dm-zabbix/ssh/id_rsa.pub
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.217
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.216
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.217
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.207
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.217
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.217
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.207
+ [Parallel] - UserSSH: user=tidb, host=192.168.0.216
+ [ Serial ] - RestartCluster
Stopping component grafana
Stopping instance 192.168.0.217
Stop grafana 192.168.0.217:3000 success
Starting component grafana
Starting instance 192.168.0.217:3000
Start instance 192.168.0.217:3000 success
Restarted cluster `dm-zabbix` successfully
用新密码登陆