|
楼主 |
发表于 2005-3-24 11:22:06
|
显示全部楼层
Post by yintao_1982
/usr/bin/safe_mysqld > /dev/null 2>&1 &
改成:
/usr/bin/safe_mysqld > --default-character-set=gb2312 > /dev/null 2>&1 &
好,重新启动MySQL:
# /etc/init.d/mysql restart
/usr/bin/mysqld_safe --default-character-set=gb2312 > /dev/null 2>&1 &
MySQL倒是可以重启,但是以前在数据库中的记录全成了乱码,我执行:
myisamchk -r -q --set-character-set=gb2312 /var/lib/mysql/account/points
出现错误:
myisamchk: Character set 'gb2312' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
heibor:/etc/init.d#
另外,我用什么办法知道当前数据库的默认编码是什么呢?
:confused: |
|