1. 程式人生 > >在數據庫中改zabbix用戶密碼

在數據庫中改zabbix用戶密碼

方法 zab out upd row cloc ali min root

mysql -uroot -p # 進入數據庫

use zabbix; # 進入zabbix庫

select * from users\G; # 查看 userid

*************************** 1. row ***************************

userid: 1

alias: Admin

name: Zabbix

surname: Administrator

passwd: 21232f297a57a5a743894a0e4a801fc3

url:

autologin: 1

autologout: 0

lang: zh_CN

refresh: 30

type: 3

theme: default

attempt_failed: 0

attempt_ip: 192.168.1.222

attempt_clock: 1517301067

rows_per_page: 50


update users set passwd=md5('123456') where userid='1'; # 此處不能用 update users set passwd=password('123456') where userid='1'; zabbix沒有這個方法.

flush privileges; # 刷新權限表

在數據庫中改zabbix用戶密碼