HI, I installed Zabbix-server 6.2 on CentOS 8.5 with MariaDB 10.5.16 and I am facing the following error when I startup zabbix-server:
[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
4775:20220718:175358.141 database is down: reconnecting in 10 seconds
I checked other posts but nothing worked. I can connect to MariaDB using mysql tool and the socket specified in the log error message:
# mysql -u zabbix -p --database=zabbix -S /var/lib/mysql/mysql.sock
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.5.16-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [zabbix]>
Also, all the information regarding the zabbix database was updated in the zabbix_server.conf file.
Can someone help me solving this error?
thanks!
[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
4775:20220718:175358.141 database is down: reconnecting in 10 seconds
I checked other posts but nothing worked. I can connect to MariaDB using mysql tool and the socket specified in the log error message:
# mysql -u zabbix -p --database=zabbix -S /var/lib/mysql/mysql.sock
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.5.16-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [zabbix]>
Also, all the information regarding the zabbix database was updated in the zabbix_server.conf file.
Can someone help me solving this error?
thanks!
Comment