[ZBX-21301] Error message cannot set MySQL character to "utf8" Created: 2022 Jul 05 Updated: 2024 Apr 10 Resolved: 2022 Jul 20 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 5.0.25 |
Fix Version/s: | 5.0.26rc1, 6.0.7rc1, 6.2.1rc1, 6.4.0alpha1, 6.4 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Vladimir Stepanov (Inactive) | Assignee: | Vladislavs Sokurenko |
Resolution: | Fixed | Votes: | 1 |
Labels: | MariaDB, charset, collate | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | Sprint 90 (Jul 2022) | ||||||||||||||||||||
Story Points: | 0.25 |
Description |
The Zabbix server generates the error in zabbix_server.log:
cannot set MySQL character to "utf8"
OS: Centos 7 DB: mysql Ver 15.1 Distrib 10.6.8-MariaDB, Zabbix version: 5.0.21, 5.0.25 See attached log filezabbix_server.log |
Comments |
Comment by Vladislavs Sokurenko [ 2022 Jul 05 ] |
Please show output of: SHOW CHARACTER SET; |
Comment by Vladislavs Sokurenko [ 2022 Jul 05 ] |
Please try ZBX-21301-5.0-test.diff |
Comment by Vladislavs Sokurenko [ 2022 Jul 05 ] |
Looks like database does not support utf8 and only utf8mb3 or utf8mb4 can be used, 6.0 should work fine with ut8mb4 until 5.0 is fixed to detect that utf8 is missing. |
Comment by Vladislavs Sokurenko [ 2022 Jul 12 ] |
Fixed in:
|
Comment by Pavel [ 2022 Aug 16 ] |
Fixed one and broke the other after the update, the Russian language stopped working, and in the server log there is an error:
|
Comment by Daniel Heise [ 2022 Aug 18 ] |
We have the same problem with the german language after upgrading from 6.0.6 to 6.0.7:
database language is utf8
sending umlauts with zabbix_sender results in:
|
Comment by Daniel Heise [ 2022 Aug 19 ] |
Today we switched the database characterset from utf8 to utf8mb4. The problem is gone. We used this guide: https://www.zabbix.com/documentation/current/en/manual/appendix/install/db_charset_coll
|
Comment by Pavel [ 2022 Aug 19 ] |
the solution is relevant only for version 6, zabbix 5 does not work with this encoding |
Comment by Vladislavs Sokurenko [ 2022 Aug 19 ] |
Unfortunately it does not work on some distributions as documented in MySQL documentation which states:
Source: Also some installations might even be missing utf8, however documented as supported characters sets here: If using 6.0 or higher it is suggested to upgrade to utf8mb4 as utf8mb3 is being deprecated and current alias is utf8 for utf8mb3, however 5.0 cannot use utf8mb4. Improved detection in |