MacOs修改MySQL的默认编码设置

my.ini文件位置

$ cd /opt/local/etc/mysql5/
$ sudo cp /opt/local/share/mysql5/mysql/my-small.cnf my.cnf

$ sudo vi my.cnf
[mysqld]
...
collation_server = utf8_general_ci
character_set_server = utf8

搞定,MadOs各种版本的mysql的下载地址是
http://dev.mysql.com/downloads/mysql/

Tags: ,

星期六, 十月 29th, 2011 Web

Leave a Reply

1LMooBmUE153Wnd3zDryWvDyXxQudbFxDr