首页 / ACCESS / 【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1497字,纯文字阅读大概需要3分钟。
内容图文
![【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)](/upload/InfoBanner/zyjiaocheng/473/024c4c6f966d4f4395c3343a767f0413.jpg)
前面安装的我就不说了,度娘上的很多;
关键是这个问题,网上的比较多,但是没有发现有用的;
问题:zabbix server is runing No
日志:/tmp/zabbix_server.log
connection to database ‘zabbix‘ failed: [1045] Access denied for user ‘root‘@‘localhost‘ (using password: NO)
解决过程:
1)找到安装目录:
[root@VMS30725 init.d]# find / -name fedora
/home/zabbix-2.2.10/misc/init.d/fedora
2)copy文件:
[root@VMS30725 init.d]# cp /home/zabbix-2.2.10/misc/init.d/fedora/core/* /etc/init.d/
3)修改zabbix_server文件:
[root@VMS30725 init.d]# pwd
/etc/init.d
[root@VMS30725 init.d]# vim zabbix_server
修改BaseDir参数:值为你的安装目录(此目录包含zabbix_server.conf文件)
BASEDIR=/usr/local/zabbix
4)修改zabbix_server.conf:
[root@VMS30725 etc]# pwd
/usr/local/zabbix/etc
[root@VMS30725 etc]# vim zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=root --你的mysql用户名
DBPassword=123456 --根据你的密码填写
DBPort=3306
ListenIP=192.168.136.67 --注意不要写为localhost
注:用户名和密码可以用命令验证下是否正确:mysql -u root -p(Enter,输入密码)
5)检查日志:vim /tmp/zabbix_server.log
6)在web页面检查其状态是否为yes
【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)
标签:name 没有 问题 password ora init failed nbsp sed
本文系统来源:http://www.cnblogs.com/alexzp/p/6115189.html
内容总结
以上是互联网集市为您收集整理的【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)全部内容,希望文章能够帮你解决【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。