码迷,mamicode.com
首页 > 数据库 > 详细

[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

时间:2017-04-25 21:24:08      阅读:585      评论:0      收藏:0      [点我收藏+]

标签:netstat   技术   网上   grep   images   strong   没有   net   ges   

在配置了zabbix服务端后,发现:“zabbix server is running”的Value值是“no”

 

技术分享

 

用:netstat -atnlp|grep 10051

发现没有出现zabbix_server的10051端口。在网上找了很多办法,发现都不管用。

 

通过查看日志看到如下错误提示:

tail /tmp/zabbix_server.log

技术分享

 

解决方法:

用root帐号登录mysql

然后执行:

mysql> grant all on zabbix.* to ‘zabbix‘@‘localhost‘ identified by ‘zabbix‘ with grant option;

mysql>flush privileges;

再查看zabbix管理页面,发现已恢复正常。“zabbix server is running”的Value值是“yes”。

查看/tmp/zabbix_server.log的内容也恢复正常。

 技术分享

 

执行:netstat -atnlp | grep 10051

发现端口号终于出现了!

 

 技术分享

 

[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

标签:netstat   技术   网上   grep   images   strong   没有   net   ges   

原文地址:http://www.cnblogs.com/hy007x/p/6763889.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!