zabbix忘記密碼,重設密碼

首先去看看mysql數據庫

查看數據庫

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| zabbix             | 
+--------------------+
5 rows in set (0.00 sec)

進入數據庫
mysql> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

查看數據有那些表

mysql> show tables;

查看是否存放用戶、密碼信息

mysql> select * from users;

更改密碼爲zabbix
mysql> update  users set passwd=md5("zabbix") where userid='1';
Query OK, 0 rows affected (0.01 sec)
Rows matched: 1  Changed: 0  Warnings: 0

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章