标题:解决Character set 'gb2312' is not a compiled character set and is not specified in the '/usr/local/share/mysql/charsets/Index.xml' file 出处:BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog 时间:Tue, 06 Apr 2010 15:36:04 +0000 作者:ArthurXF 地址:http://www.bizeway.net/read.php/534.htm 内容: 今天在给新版的5117.com网站配置新服务器。结果msyql安装好了以后在命令行就是无法进入mysql。总是报错Character set 'gb2312' is not a compiled character set and is not specified in the '/usr/local/share/mysql/charsets/Index.xml' file 我也到这个Index.xml中把关于gb2312的内容全部注释掉了,也没好。重装了mysql特意加上了支持utf-8参数,也没用。到my.conf中加上了default-character-set=utf8也不行。 最后想到我的环境变量中配置了中文环境,也许是那里的问题。 就 cd /root ee .cshrc 加注释 #setenv LC_ALL zh_CN.eucCN #setenv LANG  zh_CN.eucCN #setenv LC_CTYPE zh_CN.eucCN 保存重启。一切回复正常。 所以碰到问题,不一定就是mysql的问题,也不是它提示出来的错误。 本文由ArthurXF倾情奉献,转载请注明网址。 Generated by Bo-blog 2.0.3 sp1