- 論壇徽章:
- 2
|
zabbix頁面一直報錯:zabbix server is not running: the information displayed may not be current
本地數(shù)據(jù)庫也是可以登陸的
[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>
然后我數(shù)據(jù)庫也做了授權(quán):
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.
配置文件里的數(shù)據(jù)庫設(shè)置也沒錯:
/etc/zabbix/zabbix_server.conf
DBName=zabbix
DBUser=root
DBPassword=admin
是因為什么原因呢,各位大神,幫幫我 |
|