MySQL中文支持问题

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

转载于:https://www.cnblogs.com/chenyineng/archive/2011/04/17/2019039.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值