Posted on 2012-01-31 13:18
Milo的海域 阅读(286)
评论(0) 编辑 收藏 所属分类:
MySQL
从源码安装mysql时指定默认字符集:
- ./configure ... '--with-charset=utf8' '--with-collation=utf8_general_ci' ...
- make & make install
- start mysql instance
验证:

也可以在my.cnf里面修改默认字符集:
default-character-set=latin1