Hi Guys,
I need some help with database upgrade... I have tried to search for a solution but with no luck so far..
I have upgraded zabbix server to version 6.0 from 5.4 and after I restart my server did not start with errors:
I have used script to set all tables to dynamic mode and disabled strict mode
but still after that same error "Row size too large"....
Any chance for a help ?
I need some help with database upgrade... I have tried to search for a solution but with no luck so far..
I have upgraded zabbix server to version 6.0 from 5.4 and after I restart my server did not start with errors:
Code:
root@zabbix-server:/# tail -f /var/log/zabbix/zabbix_server.log 57618:20220614:113913.217 ****************************** 57618:20220614:113913.217 using configuration file: /etc/zabbix/zabbix_server.conf 57618:20220614:113913.230 character set name or collation name that is not supported by Zabbix found in 44 column(s) of database "zabbix" 57618:20220614:113913.230 only character set(s) "utf8,utf8mb3,utf8mb4" and corresponding collation(s) "utf8_bin,utf8mb3_bin,utf8mb4_bin" should be used in database 57618:20220614:113913.232 current database version (mandatory/optional): 05050090/05050090 57618:20220614:113913.232 required mandatory version: 06000000 57618:20220614:113913.232 optional patches were found 57618:20220614:113913.232 starting automatic database upgrade 57618:20220614:113913.233 [Z3005] query failed: [1118] Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs [alter table `config` add `geomaps_attribution` varchar(1024) default '' not null] 57618:20220614:113913.233 database upgrade failed
Code:
#!/bin/bash # source https://lxadm.com/MySQL:_changing_ROW_FORMAT_to_DYNAMIC_or_COMPRESSE D DATABASE=zabbix ROW_FORMAT=DYNAMIC TABLES=$(echo SHOW TABLES | mysql -s $DATABASE) for TABLE in $TABLES ; do echo "ALTER TABLE $TABLE ROW_FORMAT=$ROW_FORMAT;" echo "ALTER TABLE $TABLE ROW_FORMAT=$ROW_FORMAT" | mysql $DATABASE done
Any chance for a help ?
Comment