- 论坛徽章:
- 2
|
zabbix页面一直报错:zabbix server is not running: the information displayed may not be current
本地数据库也是可以登陆的
[root@localhost ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1767
Server version: 5.6.32 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
然后我数据库也做了授权:
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'admin';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
日志:
tail -f /tmp/zabbix_server.log
3260:20160731:020435.283 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
3260:20160731:020435.283 Database is down. Reconnecting in 10 seconds.
配置文件里的数据库设置也没错:
/etc/zabbix/zabbix_server.conf
DBName=zabbix
DBUser=root
DBPassword=admin
是因为什么原因呢,各位大神,帮帮我 |
|