当我在zabbix中插入一个项目,其中包含中文,最后会被放入mysql,浏览器显示:
Error cannot update item
Error in query [SELECT i.key_,h.host FROM items i,hosts h WHERE i.hostid=h.hostid AND ((i.hostid=10085 AND i.key_='logrt[\"/home/test/event.*.log\",\"失败\",\"GBK\",,]')) AND i.itemid!='23439' LIMIT 1 OFFSET 0] [Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=']
mysql_fetch_assoc() expects parameter 1 to be resource, boolean given
[include/db.inc.php:572] mysql_free_result() expects parameter 1 to be resource, boolean given
[include/db.inc.php:573]
我认为它失败了,因为zabbix不能接受除UTF-8之外的其他编码,但我不知道如何更改它。谢谢