D
D
dreamster2021-08-13 12:36:49
MySQL
dreamster, 2021-08-13 12:36:49

How to connect to the database correctly when installing the Zabbix frontend?

I install Zabbix Server on a virtual machine with Debian 10 according to the instructions, I have reached the frontend setup stage.
I go from the main OS to the zabbix server using the IP of the virtual machine, go through the configuration steps, and at the step of connecting to the database, the following problem arises:
61163825c7dfb088780982.png

In zabbix_server.conf, the parameters related to the database are as follows:

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password


On the server itself, this account (zabbix) is allowed into the database.

In the frontend, it seems, I already tried to enter all the options: 127.0.0.1, server IP address, changing the port to 0, using database root user accounts, does not help.
A strong feeling that I am doing some obvious stupidity, but I just can’t find it myself.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grishin, 2021-08-16
@dreamster

Is the database created in mysql itself? And then connection by connection, but if there is no database itself and the user has rights to it, zabbix will swear.

V
Vladimir, 2021-08-13
@MechanID

1 make sure mysql is listening on port 3306 and check that it is listening on 127.0.0.1 for sure (maybe it only listens on a different address)
2 is there a firewall? configured ?
3 selinux is probably disabled in debian, but still check with the sestatus command if disabled then everything is ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question