Hi
has anybody been through this pain? Any hints and tips on how to automate or make this easier?
has anybody been through this pain? Any hints and tips on how to automate or make this easier?
. I recommend this step-by-step guide if you are upgrading your Zabbix to 5.0 version: https://bestmonitoringtools.com/upgr...atest-version/
mysqldump -h localhost -u'[B]root[/B]' -p'[B]rootDBpass[/B]' --single-transaction '[B]zabbix[/B]' | gzip > /opt/zabbix_backup/db_files/zabbix_backup.sql.gz
mysql -u'root' -p'rootDBpass' -e "drop database zabbix" mysql -u'root' -p'rootDBpass' -e "create database zabbix character set utf8 collate utf8_bin;" mysql -u'root' -p'rootDBpass' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixDBpass';"
mysql -u'root' -p'rootDBpass' zabbix -e "set global innodb_strict_mode='OFF';" zcat /opt/zabbix_backup/db_files/zabbix_backup.sql.gz | mysql -h localhost -u'root' -p'rootDBpass' 'zabbix' mysql -u'root' -p'rootDBpass' zabbix -e "set global innodb_strict_mode='ON';"
Comment