關於MySQL編碼的配置
my.cnf:
[client]
default-character-set = utf8
[mysqld]
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