2013-03-20 5 views
1

실패에 zabbix, 중국어 포함하고 마지막에 MySQL의에 투입 될이 브라우저는 보여줍니다는 zabbix 삽입 중국어 단어가

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을 제외한 다른 인코딩을 허용하지만이를 변경하는 방법을 모르겠습니다. 감사합니다

+0

latin1의 출처는 스키마를 확인하는 것이 좋습니다. –

답변

0

확인을 클릭하면 문제가 발생합니다. zabbix 데이터베이스를 만들 때 latin1_swedish_ci라는 기본 문자 세트를 사용했지만 실제로는 utf8이됩니다. 그래서 다음과 같은 SQL 데이터베이스를 다시 만듭니다 :

그럼 모든 것이 잘 작동합니다!

관련 문제