Home > Database > Mysql Tutorial > Mysql 默认字符集设置方法(免安装版)

Mysql 默认字符集设置方法(免安装版)

WBOY
Release: 2016-06-07 18:00:45
Original
967 people have browsed it

有些时候我们在使用非安装版的mysql是需要设置默认字符集的时候,就需要这样的修改了。安装版的可以选择的。

以mysql-noinstall-5.0.22-win32为例,解压缩后会看到mysql-5.0.22-win32文件夹下面,有五个ini格式的文件,把my-medium.ini文件拷贝一份,改名为my.ini,打开my.ini文件,在[client]、[mysqld]下面加上default-character-set=gb2312,其含义就是把gb2312设置为数据库的默认字符集。设置完毕后需要重新启动myqsl服务。
同理,可以把其他字符集设置成默认字符集。
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