mysql -uroot -p # 進入數據庫
mysql
use zabbix; # 進入zabbix庫sql
select * from users\G; # 查看 userid 數據庫
*************************** 1. row ***************************ide
userid: 1url
alias: Adminspa
name: Zabbixip
surname: Administratormd5
passwd: 21232f297a57a5a743894a0e4a801fc3it
url: class
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; # 刷新權限表