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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:39:12
Original
1068 people have browsed it

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
Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template