Hi there
We're trying to upgrade our Zabbix4 server running on CentOS6, and want to keep our ~260GB MariaDB which is currently v5.5. So all old versions.
I've read that RHEL8 is the minimum OS so after unsuccessfully trying various inplace approaches I've deployed a fresh Alma8 along with Zabbix6 and MariaDB v10.5.
I used mysqldump to copy the DB across to the new server and have it running in the MariaDB v10.5. All services are running but Zabbix can't talk to the database and throws the common error:
"[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)"
I've confirmed the socket is present in that location and have successfully logged into the database with the zabbix user account via the socket: mysql -u zabbix -p -S /var/lib/mysql/mysql.sock The zabbix user can see the zabbix database with show databases.
I've run mysqlcheck --all-databases which returns all healthy tables. I've configured the zabbix_server.conf correctly as far as I can tell (I copied the relevant values from the working Zabbix4 instance).
I'm running out of things to check and wanted to see if this is even a viable approach to upgrade Zabbix in the first place - should this work? Have I missed something somewhere?
Anyway, hope someone may be able to point me in the right direction here please?
Many thanks.
Matt
We're trying to upgrade our Zabbix4 server running on CentOS6, and want to keep our ~260GB MariaDB which is currently v5.5. So all old versions.
I've read that RHEL8 is the minimum OS so after unsuccessfully trying various inplace approaches I've deployed a fresh Alma8 along with Zabbix6 and MariaDB v10.5.
I used mysqldump to copy the DB across to the new server and have it running in the MariaDB v10.5. All services are running but Zabbix can't talk to the database and throws the common error:
"[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)"
I've confirmed the socket is present in that location and have successfully logged into the database with the zabbix user account via the socket: mysql -u zabbix -p -S /var/lib/mysql/mysql.sock The zabbix user can see the zabbix database with show databases.
I've run mysqlcheck --all-databases which returns all healthy tables. I've configured the zabbix_server.conf correctly as far as I can tell (I copied the relevant values from the working Zabbix4 instance).
I'm running out of things to check and wanted to see if this is even a viable approach to upgrade Zabbix in the first place - should this work? Have I missed something somewhere?
Anyway, hope someone may be able to point me in the right direction here please?
Many thanks.
Matt
Comment