- 
    Documentation task 
- 
    Resolution: Fixed
- 
    Major 
- 
    6.0.3
- 
        Sprint 87 (Apr 2022)
- 
        0.25
Steps to reproduce:
- Export 4.0 schema as sql script (mysql 5.7)
- Change character set to utf8mbr, collation utf8mb4_bin int the sql script
- Create schema using the above sql script in a new database (mysql 8.0.26)
- Export 4.0 data from old database (mysql 5.7)
- Import 4.0 data into new database (mysql 8.0.26)
- Start zabbix_server process
- Zabbix server tries to upgrade schema and fails: [Z3005] query failed: [1071] Specified key was too long; max key length is 3072 bytes [create index items_1 on items (hostid,key_(1021))]
Result:
See log file...
Expected:
Zabbix server should be aware of the limitations on index keys on MySQL 8+ when using utf8mb4 character set (max key length is 3072/4=768)
- duplicates
- 
                    ZBXNEXT-3706 mysql utf8 vs utf8mb4 -         
- Closed
 
-         
- part of
- 
                    ZBX-20165 Database upgrade failed, Zabbix v. 5.0. Specified key was too long; max key length is 767 bytes -         
- Closed
 
-