[Z3001] connection to database ‘zabbix‘ failed: [1045] Access denied for user

question

Install Zabbix, check the log after the installation is complete, and report an error

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

detailed question

View the last 20 lines of log information in zabbix_server.log

tail -f -n 20 zabbix_server.log

Please add a picture description

solution

1 Edit zabbix_server.conf configuration information

vim /etc/zabbix/zabbix_server.conf

2 Make sure the username and password are correct
insert image description here

reason

This error message means that the MySQL database refused to connect to the database named "zabbix" with the user name "123456", and the user did not provide a password. Therefore, it is necessary to provide the correct user name and password in the configuration information of Zabbix. If no relevant operation is performed, since the default user in the configuration information of Zabbix is ​​123456, the default password configuration item is commented. Hence the error.

references

insert image description here

insert image description here

Acho que você gosta

Origin blog.csdn.net/T_Y_F_/article/details/130670702
Recomendado
Clasificación