今天在给新版的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倾情奉献,转载请注明网址。
Tags: ,
FreeBSD | 评论(0) | 引用(0) | 阅读(10966)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]