mariadb Zabbix服务器无法启动

wydwbb8l  于 2022-11-08  发布在  其他
关注(0)|答案(1)|浏览(327)
17460:20220531:100735.556 using configuration file: /etc/zabbix/zabbix_server.conf
 17460:20220531:100735.559 [Z3001] connection to database 'zabbix' failed: [1698] Access denied for user 'zabbix'@'localhost'
 17460:20220531:100735.559 Cannot connect to the database. Exiting...
 17479:20220531:100747.806 Starting Zabbix Server. Zabbix 5.0.24 (revision 313ff6504e3).
 17479:20220531:100747.806******Enabled features******
 17479:20220531:100747.806 SNMP monitoring:           YES
 17479:20220531:100747.806 IPMI monitoring:           YES
 17479:20220531:100747.806 Web monitoring:            YES
 17479:20220531:100747.806 VMware monitoring:         YES
 17479:20220531:100747.806 SMTP authentication:       YES
 17479:20220531:100747.806 ODBC:                      YES
 17479:20220531:100747.806 SSH support:               YES
 17479:20220531:100747.806 IPv6 support:              YES
 17479:20220531:100747.806 TLS support:               YES
 17479:20220531:100747.806******************************
 17479:20220531:100747.806 using configuration file: /etc/zabbix/zabbix_server.conf
 17479:20220531:100747.808 [Z3001] connection to database 'zabbix' failed: [1698] Access denied for user 'zabbix'@'localhost'
 17479:20220531:100747.808 Cannot connect to the database. Exiting...
o2gm4chl

o2gm4chl1#

您没有zabbix用户访问数据库的权限,请转到数据库并执行以下操作:

GRANT ALL PRIVILEGES ON nameofdatabase.* TO 'zabbix'@'localhost' IDENTIFIED BY'passowrd';

然后:

FLUSH PRIVILEGES;

相关问题