character_set_database = utf8 character_set_server = utf8
mysqldump -uroot -pxxxxx --default-character-set=utf8 zabbix > zabbix.sql
vim zabbix.sql :1,$s/latin1/utf8/g** ##在通常模式下,按下:鍵,輸入1,$s/latin1/utf8/g。表示從第一行到尾行($),s表示替換,將latin1替換爲utf8 g是global全局替換。**
vim /usr/share/zabbix/include/defines.inc.php #搜索fonts define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18) define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name