当前位置:网站首页>zabbix管理员忘记登录密码
zabbix管理员忘记登录密码
2022-07-24 14:51:00 【半吊子炼全栈】
zabbix管理员账户忘记登录密码

1、登录zabbix-server服务器
进入mysql
本机使用的数据库为mariadb没有密码,如果是mysql则,登录为mysql -uroot -p123456; -u后跟用户名 -p后跟密码
[[email protected] ~]# mysql
2、进入zabbix库
MariaDB [(none)]> use zabbix;
3、进入mysql数据库以后查询users表 (passwd为MD5加密)
MariaDB [zabbix]> select userid,alias,passwd from users;
+--------+------------+--------------------------------------------------------------+
| userid | alias | passwd |
+--------+------------+--------------------------------------------------------------+
| 1 | Admin | $2y$10$DN5QNswJysi73cWhiYI.o.Q.awb9zafRWCZD6wK4odU.4n2bvg6W. |
| 2 | guest | $2y$10$89otZrRNmde97rIyzclecuk6LwKAsHN0BcvoOKGjbT.BwMBfm7G06 |
| 3 | zabbixuser | $2y$10$Is8jDVyQjcoWdJqjQeEuqOiEvmvkLMb2/IjEo1n38abBdblpD11rm |
+--------+------------+--------------------------------------------------------------+
3 rows in set (0.00 sec)
4、 ⽣成⼀个新密码MD5,admin是密码 (退出数据库)
[[email protected] ~]# echo -n Admin | openssl md5
(stdin)= e3afed0047b08059d0fada10f400c1e5
5、再次进入数据库,并且进入zabbix库内
[[email protected] ~]# mysql
MariaDB [(none)]> use zabbix;
6、然后update表数据,userid=1的这个⽤户
MariaDB [zabbix]> update users set passwd='e3afed0047b08059d0fada10f400c1e5' where userid = '1';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
7、刷新重新加载权限表
MariaDB [zabbix]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
8、重新登录即可,密码为初始密码;(并且界面提示用户已更新)
搞定
边栏推荐
- Performance test - Test Execution
- pip换源
- Google Earth Engine——使用MODIS数据进行逐月数据的过火(火灾)面积并导出
- SQL Server syntax - create database
- 打假Yolov7的精度,不是所有的论文都是真实可信
- Native asynchronous network communication executes faster than synchronous instructions
- The accuracy of yolov7 in cracking down on counterfeits, not all papers are authentic
- C multithreaded lock collation record
- Error when using Fiddler hook: 502 Fiddler - connection failed
- 茅台冰淇淋“逆势”走红,跨界之意却并不在“卖雪糕”
猜你喜欢

Grpc middleware implements grpc call retry

茅台冰淇淋“逆势”走红,跨界之意却并不在“卖雪糕”

Under multi data source configuration, solve org.apache.ibatis.binding Bindingexception: invalid bound statement (not found) problem
![Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布](/img/fd/c7bff1ce199e8b600761d77828c674.png)
Rasa 3.x 学习系列-Rasa [3.2.3] - 2022-07-18 新版本发布

Detailed explanation of address bus, data bus and control bus

Simple understanding and implementation of unity delegate

《Route planning method for UAV in unknown environment based on improved SAS algorithm》翻译

Moving the mouse into select options will trigger the mouseleave event processing scheme

REST风格

onBlur和onChange冲突解决方法
随机推荐
Research Summary / programming FAQs
[NLP] next stop, embossed AI
Bibliometrix: dig out the one worth reading from thousands of papers!
spark:指定日期输出相应日期的日志(入门级-简单实现)
Rest style
"After 00" is coming! Digital data ushers in a new generation of "codeless" forces
The difference and relation among list, set and map
Leetcode · daily question · 1184. distance between bus stops · simulation
Ztree tree Metro style mouse through the display user-defined controls add, edit, delete, down, up operations
Video game design report template and
SQL的SELF JOIN用法
Differences between C language pointer and array A and &a, &a[0], etc
Detailed explanation of IO model (easy to understand)
深入浅出边缘云 | 2. 架构
Problems needing attention in mobile terminal testing
Rasa 3.x learning series -rasa fallbackclassifier source code learning notes
【MATLAB】MATLAB画图系列二 1.元胞与数组转化 2.属性元胞 3.删除nan值 4.合并多fig为同一fig 5.合并多fig至同一axes
dataframe 分组后排序的前n行 nlargest argmax idmax tail !!!!
Kali concise language transformation method (illustration)
正则表达和绕过案例