码迷,mamicode.com
首页 > 数据库 > 详细

mysql 5.5 编码设置为utf8 转载自:http://outofcontrol.ca/thoughts/comments/change-mysql-5.5-default-character-set-to-utf8

时间:2014-06-27 15:09:07      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:class   code   http   com   os   set   

Change MySQL 5.5 default character-set to UTF8

连接里是linux下的 

在window下my.ini

Add under [client]  the following code snippet:

loose-default-character-set = utf8

Add under [mysqld] the following code snippet:
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

mysql 5.5 编码设置为utf8 转载自:http://outofcontrol.ca/thoughts/comments/change-mysql-5.5-default-character-set-to-utf8,布布扣,bubuko.com

mysql 5.5 编码设置为utf8 转载自:http://outofcontrol.ca/thoughts/comments/change-mysql-5.5-default-character-set-to-utf8

标签:class   code   http   com   os   set   

原文地址:http://www.cnblogs.com/xcwytu/p/3810346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!