其中,认证类型由 authentication_type,字段决定,值可以为0,1和2。ldap认证0 代表Internal,1代表
LDAP,2代表HTTP.
这样更改认证类型就容易了:

将认证类型更改为Internal:
mysql> update config set authentication_type=0; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)
修改Admin密码:
#查询Admin用户的ID: mysql> select * from users; +--------+-------------+-------------+---------------+----------------------------------+-----+-----------+------------+-------+---------+------+---------+----------------+----------------+---------------+---------------+ | userid | alias | name | surname | passwd | url | autologin | autologout | lang | refresh | type | theme | attempt_failed | attempt_ip | attempt_clock | rows_per_page | +--------+-------------+-------------+---------------+----------------------------------+-----+-----------+------------+-------+---------+------+---------+----------------+----------------+---------------+---------------+ | 1 | Admin | Zabbix | Administrator | 5fce1b3e34b520afeffb37ce08c7cd66 | | 1 | 0 | zh_CN | 30 | 3 | default | 4 | 192.168.100.34 | 1383812925 | 50 | #更新Admin密码 mysql> update users set passwd='zabbix' where userid=1; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)
更改用户权限组:
#查询权限组ID mysql> select * from usrgrp; +----------+---------------------------+------------+--------------+------------+ | usrgrpid | name | gui_access | users_status | debug_mode | +----------+---------------------------+------------+--------------+------------+ | 7 | Zabbix administrators | 0 | 0 | 0 | | 8 | Guests | 0 | 0 | 0 | | 9 | Disabled | 0 | 1 | 0 | | 11 | Enabled debug mode | 0 | 0 | 1 | | 12 | No access to the frontend | 2 | 0 | 0 | | 13 | Hou | 0 | 0 | 0 | | 14 | Mu | 0 | 0 | 0 | +----------+---------------------------+------------+--------------+------------+ 7 rows in set (0.00 sec)
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-33385-3.html
那块地丢了就等于把极其重要的战略要塞拱手让给战略对手