在數據庫中改zabbix用戶密碼

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;  # 刷新權限表

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章