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
posted @ 2016-12-10 17:42  纯粹的人  阅读(183)  评论(0编辑  收藏  举报