Home > Database > Mysql Tutorial > body text

MySQL中文支持问题_MySQL

WBOY
Release: 2016-06-01 13:51:38
Original
864 people have browsed it

0. 本文目的

让MySQL支持中文

1. 测试环境

Windows XP sp2,MySQL Server 5.1,MySQL Administrator 1.2.17

2. 操作步骤

1)修改数据库的默认字符集

(开始菜单) - MySQL - MySQL Server 5.1 - MySQL Server Instance Config Wizard:

- Reconfigure Instance

- Detailed Configuration

- Developer Machine

- Multifunctional Database

- (InnoDB Tablespace Settings - next)

- Decision Support(DSS)/OLAP

- (networking options - next)

- Manual Selected Default Character Set/Collation(Character Set - gb2312)(主要是这一步,其他默认即可)

- ...

2)修改已存在的表(table)的字符集

在MySQL Administrator中,右击表 - Edit Table - Table Options - Character Set - gb2312

3)修改数据列(column)的字符集

在MySQL Administrator中,右击表 - Edit Table - Columns and Indices - 选中列 - Column Details - Column Charset - gb2312

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