mysql数据库编码问题
Posted 纯粹的人
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql数据库编码问题相关的知识,希望对你有一定的参考价值。
http://www.cnblogs.com/sunzn/archive/2013/03/14/2960248.html
修改/etc/my.cnf
添加:
- [mysql]
- default-character-set=utf8
- [mysqld]
- character-set-server=utf8
客户端查询中文乱码:
mysql --default-character-set=utf8 -uroot -p
以上是关于mysql数据库编码问题的主要内容,如果未能解决你的问题,请参考以下文章