Press "Enter" to skip to content

Zabbix忘记登陆密码

解决步骤如下:
mysql> use zabbix;
Database changed
mysql> desc users;
+----------------+---------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+---------------------+------+-----+---------+-------+
| userid | bigint(20) unsigned | NO | PRI | NULL | |
| alias | varchar(100) | NO | UNI | | |
| name | varchar(100) | NO | | | |
| surname | varchar(100) | NO | | | |
| passwd | char(32) | NO | | | |
| url | varchar(255) | NO | | | |
| autologin | int(11) | NO | | 0 | |
| autologout | int(11) | NO | | 900 | |
| lang | varchar(5) | NO | | en_GB | |
| refresh | int(11) | NO | | 30 | |
| type | int(11) | NO | | 1 | |
| theme | varchar(128) | NO | | default | |
| attempt_failed | int(11) | NO | | 0 | |
| attempt_ip | varchar(39) | NO | | | |
| attempt_clock | int(11) | NO | | 0 | |
| rows_per_page | int(11) | NO | | 50 | |
+----------------+---------------------+------+-----+---------+-------+
16 rows in set (0.03 sec)
mysql> select userid,alias,passwd from users;
+--------+----------------+----------------------------------+
| userid | alias | passwd |
+--------+----------------+----------------------------------+
| 1 | Admin | 9e346201ec1cc13cf6eca96ecb323cfd |
+--------+----------------+----------------------------------+
1 rows in set (0.00 sec)

mysql> update users set passwd=MD5('admin') where userid=1;

将后台管理密码设置为admin,下面就可以通过web管理界面登录了!

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注