phpnow (MySQL 5.0.16)

怎样解决MySQL 5.0.16的乱码问题?
 

1.设置phpMyAdmin

  Language:Chinese simplified (zh-utf-8)

                  MySQL 字符集:UTF-8 Unicode (utf8)

                  MySQL 连接校对 gbk_chinese_ci

2.创建数据库时

整理设置成 gbk_chinese_ci

3.用SQL建立表中

 ENGINE=MyISAM DEFAULT CHARSET=gbk;

     ENGINE=InnoDB DEFAULT CHARSET=gbk AUTO_INCREMENT=40

4.检查表结构中

varchar(100) 的整理属性为gbk_chinese_ci

其它类型的整理属性为空。

 

 

Advertisements
此条目发表在PHP分类目录。将固定链接加入收藏夹。

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s