Zabbix忘记Admin登录密码的解决方法

栏目: 数据库 · 发布时间: 7年前

内容简介:问题描述:有时候忘记Zabbix admin的密码了,因为账号太多

问题描述:

有时候忘记Zabbix admin的密码了,因为账号太多

Zabbix忘记Admin登录密码的解决方法

解决方案:

1、zabbix连接的是 mysql 数据库

[root@localhost /]# mysql -uroot -pAbc123 #-u是用户名,-p后面是密码

2、进入mysql数据库以后查询users表

Zabbix忘记Admin登录密码的解决方法

MariaDB [mysql]> use zabbix;

MariaDB [zabbix]> show tables;

MariaDB [zabbix]> select * from users;

MariaDB [zabbix]> select userid,alias,passwd from users;

3、生成一个新密码MD5,admin是密码

[root@localhost ~]# echo -n  admin  | openssl md5

(stdin)= 21232f297a57a5a743894a0e4a801fc3

4、然后update表数据,userid=1的这个用户

MariaDB [zabbix]> update users set  passwd='21232f297a57a5a743894a0e4a801fc3' where userid = '1';

Query OK, 1 row affected (0.01 sec)

Rows matched: 1  Changed: 1  Warnings: 0

5、刷新重新加载权限表

MariaDB [zabbix]> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.03 sec)

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

本文永久更新链接地址: https://www.linuxidc.com/Linux/2019-04/158347.htm


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Distributed Algorithms: An Intuitive Approach

Distributed Algorithms: An Intuitive Approach

Wan Fokkink / MIT Press / 2018-2-2 / USD 48.00

The new edition of a guide to distributed algorithms that emphasizes examples and exercises rather than the intricacies of mathematical models. This book offers students and researchers a guide to ......一起来看看 《Distributed Algorithms: An Intuitive Approach》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具