Home >Database >Mysql Tutorial >ubuntu13.10配置mysql5.5编码

ubuntu13.10配置mysql5.5编码

WBOY
WBOYOriginal
2016-06-07 15:55:151102browse

1、打开配置文件 sudo gedit /etc/mysql/my.cnf 2、修改配置文件 [client]下添加: character-set-server = utf8 [mysqld]下添加: character-set-server = utf8 3、重启服务 sudo service mysql restart

1、打开配置文件

sudo gedit /etc/mysql/my.cnf
2、修改配置文件 

[client]下添加:

character-set-server = utf8 

[mysqld]下添加:

character-set-server = utf8 
3、重启服务
sudo service mysql restart
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