Here is how I upgraded my Zabbix from 6.2.6 to 6.4.1
Environment:
Version 6.2.6
Server: Debian 11
Componemt: Server, Frontend, Agent
Database: MySQL
Web Server: Apache
These are the steps I took to upgrade. This worked for me:
cat /var/log/zabbix/zabbix_server.log | grep database
You should see the upgrade, something like this.
782:20230418:084424.462 completed 0% of database upgrade
782:20230418:084424.488 completed 1% of database upgrade
782:20230418:084424.530 completed 2% of database upgrade
782:20230418:084424.583 completed 3% of database upgrade
782:20230418:084424.643 completed 4% of database upgrade
782:20230418:084424.693 completed 5% of database upgrade
(lines 6% through 95% deleted to shorten this example)
782:20230418:084438.152 completed 96% of database upgrade
782:20230418:084438.165 completed 97% of database upgrade
782:20230418:084438.247 completed 98% of database upgrade
782:20230418:084438.396 completed 99% of database upgrade
782:20230418:084438.402 completed 100% of database upgrade
782:20230418:084438.434 database upgrade fully completed
595:20230418:084821.642 current database version (mandatory/optional): 06040000/06040000
Environment:
Version 6.2.6
Server: Debian 11
Componemt: Server, Frontend, Agent
Database: MySQL
Web Server: Apache
These are the steps I took to upgrade. This worked for me:
- Take a snapshot of the server in VMware.
- PuTTy into server at IP address with ZABBIX credentials
- SU root and entered root password
- Set PATH for ROOT
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" - Stop the Zabbix Server
service zabbix-server stop - Stop the Zabbix Server
systemctl stop zabbix-server - Remove the old Zabbix Package\files
dpkg --purge zabbix-release - Download the new Zabbix software
wget https://repo.zabbix.com/zabbix/6.4/d...bian11_all.deb - Deploy the new Zabbix software
dpkg -i zabbix-release_6.4-1+debian11_all.deb - Check for updates
apt-get update - Install Zabbix software
apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent - Upgrade the Apached Web Front
apt-get install zabbix-apache-conf - Next, access the MYSQL database and change rights – notice the semi-colon at the end of each line, which must be included. Run one line at a time
- mysql -uroot -p
- Enter Root password
- mysql> grant all privileges on zabbix.* to zabbix@localhost;
- mysql> set global log_bin_trust_function_creators = 1;
- mysql> quit;
- Reboot the server
shutdown -r
cat /var/log/zabbix/zabbix_server.log | grep database
You should see the upgrade, something like this.
782:20230418:084424.462 completed 0% of database upgrade
782:20230418:084424.488 completed 1% of database upgrade
782:20230418:084424.530 completed 2% of database upgrade
782:20230418:084424.583 completed 3% of database upgrade
782:20230418:084424.643 completed 4% of database upgrade
782:20230418:084424.693 completed 5% of database upgrade
(lines 6% through 95% deleted to shorten this example)
782:20230418:084438.152 completed 96% of database upgrade
782:20230418:084438.165 completed 97% of database upgrade
782:20230418:084438.247 completed 98% of database upgrade
782:20230418:084438.396 completed 99% of database upgrade
782:20230418:084438.402 completed 100% of database upgrade
782:20230418:084438.434 database upgrade fully completed
595:20230418:084821.642 current database version (mandatory/optional): 06040000/06040000
- If the database looks good, access the MYSQL database again and change rights .
Notice the semi-colon at the end of each line, which must be included.
Run one line at a time.- mysql -uroot -p
- Enter root password
- mysql> grant all privileges on zabbix.* to zabbix@localhost;
- mysql> set global log_bin_trust_function_creators = 0;
- mysql> quit;
You can do better..
Comment