您的位置:首页 > 博客中心 > 数据库 >

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

时间:2022-03-10 17:46

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

热门排行

今日推荐

热门手游