Hello, I did a few refactoring on my server and just upgraded zabbix docker image : zabbix/zabbix-server-mysql
from 4.something to 5.0. I've also upgraded MariaDB.
But zabbix won't start : while starting it returns this error then fails :
I've tried to convert the database collation but it hasn't changed anything :
Any help would be very much appreciated here !
Thanks !
from 4.something to 5.0. I've also upgraded MariaDB.
But zabbix won't start : while starting it returns this error then fails :
Code:
zabbix | 7:20200525:040444.998 starting automatic database upgrade zabbix | 7:20200525:040444.998 [Z3005] query failed: [1071] Specified key was too long; max key length is 3072 bytes [create index items_1 on items (hostid,key_(1021))] zabbix | 7:20200525:040444.998 database upgrade failed
Code:
MariaDB [zabbix]> SELECT @@character_set_database, @@collation_database; +--------------------------+----------------------+ | @@character_set_database | @@collation_database | +--------------------------+----------------------+ | utf8mb4 | utf8mb4_general_ci | +--------------------------+----------------------+ 1 row in set (0.000 sec) MariaDB [zabbix]> ALTER DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin; Query OK, 1 row affected (0.001 sec)
Thanks !
Comment