Home  >  Article  >  Database  >  Linux修改xampp下mysql的编码问题_MySQL

Linux修改xampp下mysql的编码问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:39:12974browse

XAMPP

bitsCN.com

Linux修改xampp下mysql的编码问题

 

xampp下的mysql默认的编码是'latin1',我现在改的是把编码换成'utf-8',方法如下:

 

[client]

default-character-set = utf8

[mysqld]

character-set-server = utf8

 

init_connect = 'SET NAMES utf8'

 

在/etc/my.cnf内找到[client]和[mysqld]添加以上3句.

 

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