我用的是Red Hat 9.0自带的Mysql 5.0,他的默认字符集是utf-8的,我设置了my.cnf, 还是没用~
[mysqld]
default-character-set = gb2312
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1