"Zabbix" Connection to database ' Zabbix ' failed: [1045] Access denied for user ' root ' @ ' localhost ' (using Password:no)

Source: Internet
Author: User

The front installed I will not say, degrees Niang on a lot;

The key is this problem, online more, but not found useful;

Issue: Zabbix server is runing No

LOG:/tmp/zabbix_server.log

Connection to database ' Zabbix ' failed: [1045] Access denied for user ' root ' @ ' localhost ' (using Password:no)

Resolution process:

1) Locate the installation directory:

[Email protected] init.d]# Find/-name Fedora
/home/zabbix-2.2.10/misc/init.d/fedora

2) Copy file:

[Email protected] init.d]# cp/home/zabbix-2.2.10/misc/init.d/fedora/core/*/etc/init.d/

3) Modify the Zabbix_server file:

[Email protected] init.d]# pwd
/etc/init.d
[Email protected] init.d]# vim Zabbix_server

Modify the Basedir parameter: The value is your installation directory (this directory contains zabbix_server.conf files)

Basedir=/usr/local/zabbix

4) Modify zabbix_server.conf:

[Email protected] etc]# pwd
/usr/local/zabbix/etc
[Email protected] etc]# vim zabbix_server.conf

Dbhost=localhost

Dbname=zabbix

Dbuser=root-your MySQL user name

dbpassword=123456--Fill it out with your password

dbport=3306

listenip=192.168.136.67--Be careful not to write as localhost

Note: The username and password can be verified with the command: Mysql-u root-p (enter, password)

5) Check log: Vim/tmp/zabbix_server.log

6) Check if the status is yes on the Web page

"Zabbix" Connection to database ' Zabbix ' failed: [1045] Access denied for user ' root ' @ ' localhost ' (using Password:no)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.