Jghost

jeiao, In me the tiger sniffs the rose !

导航

ubuntu windows mysql 中文乱码解决

  sudo gedit /etc/mysql/my.cnf

[mysqld] 
init_connect
='SET collation_connection = utf8_unicode_ci' 
init_connect
='SET NAMES utf8' 
character-set-server
=utf8 
collation-server
=utf8_unicode_ci 
skip-character-set-client-handshake

 

show variables like 'char%';

posted on 2013-05-09 12:30  Jghost  阅读(168)  评论(0编辑  收藏  举报