Hello
I’ve just installed Zabbix 7 on Ubuntu 24.04
On the main web page, I have the message
sudo systemctl status zabbix-server zabbix-agent apache2
gives active for all
In /var/log/zabbix/zabbix_server.log
I have this message
1276:20240716:125857.555 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
But, I configured the server with
DB name zabbixdb
and
DB user zabbixusr
And in /etc/zabbix/web/zabbix.conf.php
I have indeed
// Zabbix GUI configuration file.
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbixdb';
$DB['USER'] = 'zabbixusr';
$DB['PASSWORD'] = 'mypassword';
In mysql
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| zabbixdb |
+--------------------+
mysql> select user,host from mysql.user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| debian-sys-maint | localhost |
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
| zabbixusr | localhost |
+------------------+-----------+
6 rows in set (0.00 sec)
Why does Zabbix still user zabbix as DB name and user name ?
Thanks
I’ve just installed Zabbix 7 on Ubuntu 24.04
On the main web page, I have the message
Zabbix server is not running: the information displayed may not be current
gives active for all
In /var/log/zabbix/zabbix_server.log
I have this message
1276:20240716:125857.555 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
But, I configured the server with
DB name zabbixdb
and
DB user zabbixusr
And in /etc/zabbix/web/zabbix.conf.php
I have indeed
// Zabbix GUI configuration file.
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbixdb';
$DB['USER'] = 'zabbixusr';
$DB['PASSWORD'] = 'mypassword';
In mysql
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| zabbixdb |
+--------------------+
mysql> select user,host from mysql.user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| debian-sys-maint | localhost |
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
| zabbixusr | localhost |
+------------------+-----------+
6 rows in set (0.00 sec)
Why does Zabbix still user zabbix as DB name and user name ?
Thanks
Comment