Home >Database >Mysql Tutorial >MySQL在Windows下解决中文乱码_MySQL

MySQL在Windows下解决中文乱码_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:47:00812browse

bitsCN.com

 

   首先关闭MySql,找到自己MySQL的安装目录,在目录下找到my.ini文件, 打开my.ini,找到default-character-set,将其改为自己想用的字符集:utf8,要注意的是这里有两个default-character-set,都要改成utf8,注意是utf8,而不是utf-8哦,第一次的时候我就是把utf8改成了utf-8,mysql服务怎么都打不开,好了,修改完毕,重启Mysql。

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn