Home > Database > Mysql Tutorial > body text

ubuntu13.10配置mysql5.5编码

WBOY
Release: 2016-06-07 15:55:15
Original
1063 people have browsed it

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
Copy after login
2、修改配置文件

[client]下添加:

character-set-server = utf8 
Copy after login
Copy after login

[mysqld]下添加:

character-set-server = utf8 
Copy after login
Copy after login
3、重启服务
sudo service mysql restart
Copy after login
Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!