装了xampp,怎么配置my.ini文件,高分请问

WBOY
Release: 2016-06-13 13:53:46
Original
1003 people have browsed it

装了xampp,如何配置my.ini文件,高分请教。
小弟初接触php, 发现my.ini里少了很多,我现在想修改默认编码。因为发现的默认编码是这样:

mysql> show variables like 'char%';
+--------------------------+--------------------------------+
| Variable_name | Value |
+--------------------------+--------------------------------+
| character_set_client | gbk |
| character_set_connection | gbk |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | gbk |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | C:\xampp\mysql\share\charsets\ |
+--------------------------+--------------------------------+
8 rows in set (0.00 sec)

我想把默认是gbk,latin1都修改为utf8, 该怎么改,望高手指导。

------解决方案--------------------
在mysqld 选项组下面添加:
default-character-set=utf8;

就可以了,或则你每次连先set names utf8;也行。
------解决方案--------------------
default_character_set=utf8

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