作者:nowemf | 来源:互联网 | 2014-06-09 00:50
关于MySQL编码的配置my.cnf:[client]default-character-setutf8[mysqld]init_connect'SETcollation_connectionutf8_general_ci'init_connect'SETNAMESutf
关于MySQL编码的配置
my.cnf:
[client]
default-character-set = utf8
init_cOnnect= 'SET collation_cOnnection= utf8_general_ci'
init_cOnnect= 'SET NAMES utf8' www.2cto.com
character-set-server = utf8
collation-server = utf8_general_ci
[mysql]
default-character-set = utf8