close
環境:Ubuntu Server 8.04 + MySQL 5.0.51a-3ubuntu5.1
修改 /etc/mysql/my.cnf:
[mysqld]
init-connect='SET NAMES utf8'
default-character-set=utf8
[mysql]
default-character-set=utf8
重新啟動 MySQL:
sudo /etc/init.d/mysql restart
參考來源:
http://michael.orzcorp.com/2006/01/mysql-5utf-8.html
全站熱搜
留言列表