[Z3001] connection to database ' Zabbix ' failed: [1045] Access denied for user ' Zabbix ' @ ' localhost ' (using Password:yes)

Source: Internet
Author: User
Tags postgresql
After configuring the zabbix server, it is found that the value of "zabbix server is running" is "no",

Use: netstat -atnlp|grep 10051

It was found that port 10051 of zabbix_server did not appear. I searched for many methods on the Internet and found that none of them worked.

You can see the following error message by viewing the log:

tail /tmp/zabbix_server.log

Solution:

Log in to mysql with root account

Then execute:

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

mysql>flush privileges;

Check the zabbix management page again and found that it has returned to normal. The Value of "zabbix server is running" is "yes".

Checking the contents of /tmp/zabbix_server.log also returns to normal.


Implementation: netstat -atnlp | grep 10051

Found that the port number finally appeared!


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

After configuring the zabbix server, it is found that the value of "zabbix server is running" is "no",

Use: netstat -atnlp|grep 10051

It was found that port 10051 of zabbix_server did not appear. I searched for many methods on the Internet and found that none of them worked.

You can see the following error message by viewing the log:

tail /tmp/zabbix_server.log

Solution:

Log in to mysql with root account

Then execute:

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

mysql>flush privileges;

Check the zabbix management page again and found that it has returned to normal. The Value of "zabbix server is running" is "yes".

Checking the contents of /tmp/zabbix_server.log also returns to normal.


Implementation: netstat -atnlp | grep 10051

Found that the port number finally appeared!


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

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

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.